Skip to contentSkip to conversation

ASoC: sn95031: decorate function with __devexit_p()

PATCH In review Lu Guanqun 2 participants 2 messages Apr 9, 2011 – Apr 11, 2011

Subsystems (2)
lore
Share & tools
lore

Lu Guanqun

author
#0 lore raw

PATCH 1/1 ASoC: sn95031: decorate function with __devexit_p()

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 config options."

Fix this issue in codecs sn95031.

---
 sound/soc/codecs/sn95031.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/sn95031.c +1 -1
index 569555f..f70977d 100644
@@ -918,7 +918,7 @@ static struct platform_driver sn95031_codec_driver = {
 		.owner		= THIS_MODULE,
 	},
 	.probe		= sn95031_device_probe,
-	.remove		= sn95031_device_remove,
+	.remove		= __devexit_p(sn95031_device_remove),
 };
 
 static int __init sn95031_init(void)
Acked-by on v1 1/1
#1 lore raw
Quoted 19 lines · Lu Guanqun

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 config options."

Fix this issue in codecs sn95031.

---
 sound/soc/codecs/sn95031.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/sn95031.c +0 -0
index 569555f..f70977d 100644

sound/soc/codecs/sn95031.c static struct platform_driver sn95031_codec_driver = { · line 924

Quoted 8 lines
sound/soc/codecs/sn95031.c +1 -1
@@ -918,7 +918,7 @@ static struct platform_driver sn95031_codec_driver = {
 		.owner		= THIS_MODULE,
 	},
 	.probe		= sn95031_device_probe,
-	.remove		= sn95031_device_remove,
+	.remove		= __devexit_p(sn95031_device_remove),
 };
 
 static int __init sn95031_init(void)