aboutsummaryrefslogtreecommitdiffstats
path: root/sound/arm
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2005-12-07 03:13:42 -0500
committerJaroslav Kysela <perex@suse.cz>2006-01-03 06:30:39 -0500
commitf7a9275d949cb0bf1f259a1546e52a0bf518151c (patch)
tree4d96d9b6196d43684903857ba676dc51bbde4026 /sound/arm
parent416c1079d30f1a52399b96f6772e993274b774ae (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/arm')
-rw-r--r--sound/arm/sa11xx-uda1341.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/arm/sa11xx-uda1341.c b/sound/arm/sa11xx-uda1341.c
index 3c342c1a7c80..13057d92f08a 100644
--- a/sound/arm/sa11xx-uda1341.c
+++ b/sound/arm/sa11xx-uda1341.c
@@ -21,7 +21,7 @@
21 * merged HAL layer (patches from Brian) 21 * merged HAL layer (patches from Brian)
22 */ 22 */
23 23
24/* $Id: sa11xx-uda1341.c,v 1.26 2005/11/17 17:19:50 tiwai Exp $ */ 24/* $Id: sa11xx-uda1341.c,v 1.27 2005/12/07 09:13:42 cladisch Exp $ */
25 25
26/*************************************************************************************************** 26/***************************************************************************************************
27* 27*
@@ -155,6 +155,8 @@ static struct snd_pcm_hw_constraint_list hw_constraints_rates = {
155 .mask = 0, 155 .mask = 0,
156}; 156};
157 157
158static struct platform_device *device;
159
158/* }}} */ 160/* }}} */
159 161
160/* {{{ Clock and sample rate stuff */ 162/* {{{ Clock and sample rate stuff */
@@ -976,7 +978,6 @@ static struct platform_driver sa11xx_uda1341_driver = {
976static int __init sa11xx_uda1341_init(void) 978static int __init sa11xx_uda1341_init(void)
977{ 979{
978 int err; 980 int err;
979 struct platform_device *device;
980 981
981 if (!machine_is_h3xxx()) 982 if (!machine_is_h3xxx())
982 return -ENODEV; 983 return -ENODEV;
@@ -992,6 +993,7 @@ static int __init sa11xx_uda1341_init(void)
992 993
993static void __exit sa11xx_uda1341_exit(void) 994static void __exit sa11xx_uda1341_exit(void)
994{ 995{
996 platform_device_unregister(device);
995 platform_driver_unregister(&sa11xx_uda1341_driver); 997 platform_driver_unregister(&sa11xx_uda1341_driver);
996} 998}
997 999