]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
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 f97110e72e855d1da85253ec83212f185a29e152..65ea53884806ef7c017ac7105052f1ea01336d11 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 c086b78539ee5075f14b76d99089e4abb7f0abf1..0c9ac20d222380870826e39505bea7240e837395 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 9c7e8b48aed6a4dc2bbc76d1955a5d56025eae9b..e55d7a5c4bdc59a41127004e2295e5ed730293ff 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 7ab8e2c292163c04a1e5c9c0579e6c8e274e2f12..f26a8bfb2357429a01b6e6b33bab89c2ee04de49 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 21c92e2e3007c00d6fa54cdab729d8741a3d1e51..c08117e658db748174f2b95fa2f76272abe3a93e 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 28c491dacf7a9aca23463e15bf72c64abf0b0b2c..c82b47152b7591b5d0c3c04c73ccf0ccb9fd537c 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,