ASoC: samsung: Add __devexit_p at necessary places
authorAxel Lin <axel.lin@gmail.com>
Sun, 2 Oct 2011 03:20:13 +0000 (11:20 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 2 Oct 2011 18:58:44 +0000 (19:58 +0100)
According to the comments in include/linux/init.h:

"Pointers to __devexit functions must use __devexit_p(function_name), the
wrapper will insert either the function_name or NULL, depending on the confi
options."

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Jaswinder Singh <jassi.brar@samsung.com>
Cc: Ben Dooks <ben@simtec.co.uk>
Cc: Seungwhan Youn <sw.youn@samsung.com>
Cc: Jassi Brar <jassisinghbrar@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/samsung/ac97.c
sound/soc/samsung/i2s.c
sound/soc/samsung/pcm.c
sound/soc/samsung/s3c2412-i2s.c
sound/soc/samsung/s3c24xx-i2s.c
sound/soc/samsung/spdif.c

index f97110e..65ea538 100644 (file)
@@ -495,7 +495,7 @@ static __devexit int s3c_ac97_remove(struct platform_device *pdev)
 
 static struct platform_driver s3c_ac97_driver = {
        .probe  = s3c_ac97_probe,
-       .remove = s3c_ac97_remove,
+       .remove = __devexit_p(s3c_ac97_remove),
        .driver = {
                .name = "samsung-ac97",
                .owner = THIS_MODULE,
index c086b78..0c9ac20 100644 (file)
@@ -1136,7 +1136,7 @@ static __devexit int samsung_i2s_remove(struct platform_device *pdev)
 
 static struct platform_driver samsung_i2s_driver = {
        .probe  = samsung_i2s_probe,
-       .remove = samsung_i2s_remove,
+       .remove = __devexit_p(samsung_i2s_remove),
        .driver = {
                .name = "samsung-i2s",
                .owner = THIS_MODULE,
index 9c7e8b4..e55d7a5 100644 (file)
@@ -624,7 +624,7 @@ static __devexit int s3c_pcm_dev_remove(struct platform_device *pdev)
 
 static struct platform_driver s3c_pcm_driver = {
        .probe  = s3c_pcm_dev_probe,
-       .remove = s3c_pcm_dev_remove,
+       .remove = __devexit_p(s3c_pcm_dev_remove),
        .driver = {
                .name = "samsung-pcm",
                .owner = THIS_MODULE,
index 7ab8e2c..f26a8bf 100644 (file)
@@ -176,7 +176,7 @@ static __devexit int s3c2412_iis_dev_remove(struct platform_device *pdev)
 
 static struct platform_driver s3c2412_iis_driver = {
        .probe  = s3c2412_iis_dev_probe,
-       .remove = s3c2412_iis_dev_remove,
+       .remove = __devexit_p(s3c2412_iis_dev_remove),
        .driver = {
                .name = "s3c2412-iis",
                .owner = THIS_MODULE,
index 21c92e2..c08117e 100644 (file)
@@ -481,7 +481,7 @@ static __devexit int s3c24xx_iis_dev_remove(struct platform_device *pdev)
 
 static struct platform_driver s3c24xx_iis_driver = {
        .probe  = s3c24xx_iis_dev_probe,
-       .remove = s3c24xx_iis_dev_remove,
+       .remove = __devexit_p(s3c24xx_iis_dev_remove),
        .driver = {
                .name = "s3c24xx-iis",
                .owner = THIS_MODULE,
index 28c491d..c82b471 100644 (file)
@@ -475,7 +475,7 @@ static __devexit int spdif_remove(struct platform_device *pdev)
 
 static struct platform_driver samsung_spdif_driver = {
        .probe  = spdif_probe,
-       .remove = spdif_remove,
+       .remove = __devexit_p(spdif_remove),
        .driver = {
                .name   = "samsung-spdif",
                .owner  = THIS_MODULE,