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/ppc/powermac.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/ppc/powermac.c')
-rw-r--r-- | sound/ppc/powermac.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/ppc/powermac.c b/sound/ppc/powermac.c index efa06fe5f01b..f4902a219e50 100644 --- a/sound/ppc/powermac.c +++ b/sound/ppc/powermac.c | |||
@@ -46,6 +46,8 @@ MODULE_PARM_DESC(id, "ID string for " CHIP_NAME " soundchip."); | |||
46 | module_param(enable_beep, bool, 0444); | 46 | module_param(enable_beep, bool, 0444); |
47 | MODULE_PARM_DESC(enable_beep, "Enable beep using PCM."); | 47 | MODULE_PARM_DESC(enable_beep, "Enable beep using PCM."); |
48 | 48 | ||
49 | static struct platform_device *device; | ||
50 | |||
49 | 51 | ||
50 | /* | 52 | /* |
51 | */ | 53 | */ |
@@ -182,7 +184,6 @@ static struct platform_driver snd_pmac_driver = { | |||
182 | static int __init alsa_card_pmac_init(void) | 184 | static int __init alsa_card_pmac_init(void) |
183 | { | 185 | { |
184 | int err; | 186 | int err; |
185 | struct platform_device *device; | ||
186 | 187 | ||
187 | if ((err = platform_driver_register(&snd_pmac_driver)) < 0) | 188 | if ((err = platform_driver_register(&snd_pmac_driver)) < 0) |
188 | return err; | 189 | return err; |
@@ -197,6 +198,7 @@ static int __init alsa_card_pmac_init(void) | |||
197 | 198 | ||
198 | static void __exit alsa_card_pmac_exit(void) | 199 | static void __exit alsa_card_pmac_exit(void) |
199 | { | 200 | { |
201 | platform_device_unregister(device); | ||
200 | platform_driver_unregister(&snd_pmac_driver); | 202 | platform_driver_unregister(&snd_pmac_driver); |
201 | } | 203 | } |
202 | 204 | ||