diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2005-12-07 03:13:42 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:30:39 -0500 |
commit | f7a9275d949cb0bf1f259a1546e52a0bf518151c (patch) | |
tree | 4d96d9b6196d43684903857ba676dc51bbde4026 /sound/drivers/mtpav.c | |
parent | 416c1079d30f1a52399b96f6772e993274b774ae (diff) |
[ALSA] unregister platform devices
Call platform_device_unregister() for all platform devices that we've
registered.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Diffstat (limited to 'sound/drivers/mtpav.c')
-rw-r--r-- | sound/drivers/mtpav.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/drivers/mtpav.c b/sound/drivers/mtpav.c index d9c4e224fa5f..b7a0b42813e1 100644 --- a/sound/drivers/mtpav.c +++ b/sound/drivers/mtpav.c | |||
@@ -95,6 +95,8 @@ MODULE_PARM_DESC(irq, "Parallel IRQ # for MotuMTPAV MIDI."); | |||
95 | module_param(hwports, int, 0444); | 95 | module_param(hwports, int, 0444); |
96 | MODULE_PARM_DESC(hwports, "Hardware ports # for MotuMTPAV MIDI."); | 96 | MODULE_PARM_DESC(hwports, "Hardware ports # for MotuMTPAV MIDI."); |
97 | 97 | ||
98 | static struct platform_device *device; | ||
99 | |||
98 | /* | 100 | /* |
99 | * defines | 101 | * defines |
100 | */ | 102 | */ |
@@ -763,7 +765,6 @@ static struct platform_driver snd_mtpav_driver = { | |||
763 | static int __init alsa_card_mtpav_init(void) | 765 | static int __init alsa_card_mtpav_init(void) |
764 | { | 766 | { |
765 | int err; | 767 | int err; |
766 | struct platform_device *device; | ||
767 | 768 | ||
768 | if ((err = platform_driver_register(&snd_mtpav_driver)) < 0) | 769 | if ((err = platform_driver_register(&snd_mtpav_driver)) < 0) |
769 | return err; | 770 | return err; |
@@ -778,6 +779,7 @@ static int __init alsa_card_mtpav_init(void) | |||
778 | 779 | ||
779 | static void __exit alsa_card_mtpav_exit(void) | 780 | static void __exit alsa_card_mtpav_exit(void) |
780 | { | 781 | { |
782 | platform_device_unregister(device); | ||
781 | platform_driver_unregister(&snd_mtpav_driver); | 783 | platform_driver_unregister(&snd_mtpav_driver); |
782 | } | 784 | } |
783 | 785 | ||