Commit 7764b528 authored by Guenter Roeck's avatar Guenter Roeck

hwmon: (twl4030-madc-hwmon) Fix warning message caused by removal of __devexit

Commit 281dfd0b removed __devexit from the exit function but left __exit_p in
place. This results in the following warning message if the module is built into
the kernel.

twl4030-madc-hwmon.c:123:12: warning: ‘twl4030_madc_hwmon_remove’ defined
but not used [-Wunused-function]

Fix by removing __exit_p as well.
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Reviewed-by: default avatarJean Delvare <khali@linux-fr.org>
parent aed606e3
...@@ -130,7 +130,7 @@ static int twl4030_madc_hwmon_remove(struct platform_device *pdev) ...@@ -130,7 +130,7 @@ static int twl4030_madc_hwmon_remove(struct platform_device *pdev)
static struct platform_driver twl4030_madc_hwmon_driver = { static struct platform_driver twl4030_madc_hwmon_driver = {
.probe = twl4030_madc_hwmon_probe, .probe = twl4030_madc_hwmon_probe,
.remove = __exit_p(twl4030_madc_hwmon_remove), .remove = twl4030_madc_hwmon_remove,
.driver = { .driver = {
.name = "twl4030_madc_hwmon", .name = "twl4030_madc_hwmon",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment