Skip to content

Commit

Permalink
ASoC: sn95031: decorate function with __devexit_p()
Browse files Browse the repository at this point in the history
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 <guanqun.lu@intel.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Lu Guanqun authored and Mark Brown committed Apr 11, 2011
1 parent 68e0c66 commit 90db8ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/sn95031.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 90db8ec

Please sign in to comment.