diff options
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 | ||