From: Lu Guanqun Date: Sat, 9 Apr 2011 15:03:58 +0000 (+0800) Subject: ASoC: sn95031: decorate function with __devexit_p() X-Git-Tag: MMI-PSA29.97-13-9~19774^2~19 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=90db8ece6a3150228c46aaf1a0f6388bf7434288;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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. Signed-off-by: Lu Guanqun Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/sn95031.c b/sound/soc/codecs/sn95031.c index 2a30eae1881c..f74d497ce9fc 100644 --- a/sound/soc/codecs/sn95031.c +++ b/sound/soc/codecs/sn95031.c @@ -925,7 +925,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)