mts64.c (f0eef25339f92f7cd4aeea23d9ae97987a5a1e82) | mts64.c (788c6043335590e0a483fdc18f85b1405a157bf9) |
---|---|
1/* 2 * ALSA Driver for Ego Systems Inc. (ESI) Miditerminal 4140 3 * Copyright (c) 2006 by Matthias König <mk@phasorlab.de> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 1012 unchanged lines hidden (view full) --- 1021 snd_printk("ESI Miditerminal 4140 on 0x%lx\n", p->base); 1022 return 0; 1023 1024__err: 1025 snd_card_free(card); 1026 return err; 1027} 1028 | 1/* 2 * ALSA Driver for Ego Systems Inc. (ESI) Miditerminal 4140 3 * Copyright (c) 2006 by Matthias König <mk@phasorlab.de> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 1012 unchanged lines hidden (view full) --- 1021 snd_printk("ESI Miditerminal 4140 on 0x%lx\n", p->base); 1022 return 0; 1023 1024__err: 1025 snd_card_free(card); 1026 return err; 1027} 1028 |
1029static int snd_mts64_remove(struct platform_device *pdev) | 1029static int __devexit snd_mts64_remove(struct platform_device *pdev) |
1030{ 1031 struct snd_card *card = platform_get_drvdata(pdev); 1032 1033 if (card) 1034 snd_card_free(card); 1035 1036 return 0; 1037} 1038 1039 1040static struct platform_driver snd_mts64_driver = { 1041 .probe = snd_mts64_probe, | 1030{ 1031 struct snd_card *card = platform_get_drvdata(pdev); 1032 1033 if (card) 1034 snd_card_free(card); 1035 1036 return 0; 1037} 1038 1039 1040static struct platform_driver snd_mts64_driver = { 1041 .probe = snd_mts64_probe, |
1042 .remove = snd_mts64_remove, | 1042 .remove = __devexit_p(snd_mts64_remove), |
1043 .driver = { 1044 .name = PLATFORM_DRIVER 1045 } 1046}; 1047 1048/********************************************************************* 1049 * module init stuff 1050 *********************************************************************/ | 1043 .driver = { 1044 .name = PLATFORM_DRIVER 1045 } 1046}; 1047 1048/********************************************************************* 1049 * module init stuff 1050 *********************************************************************/ |
1051static void snd_mts64_unregister_all(void) | 1051static void __init_or_module snd_mts64_unregister_all(void) |
1052{ 1053 int i; 1054 1055 for (i = 0; i < SNDRV_CARDS; ++i) { 1056 if (platform_devices[i]) { 1057 platform_device_unregister(platform_devices[i]); 1058 platform_devices[i] = NULL; 1059 } --- 32 unchanged lines hidden --- | 1052{ 1053 int i; 1054 1055 for (i = 0; i < SNDRV_CARDS; ++i) { 1056 if (platform_devices[i]) { 1057 platform_device_unregister(platform_devices[i]); 1058 platform_devices[i] = NULL; 1059 } --- 32 unchanged lines hidden --- |