Skip to content

Commit

Permalink
hwmon: (twl4030-madc-hwmon) Fix warning message caused by removal of …
Browse files Browse the repository at this point in the history
…__devexit

Commit 281dfd0 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: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Jean Delvare <khali@linux-fr.org>
  • Loading branch information
Guenter Roeck committed Dec 17, 2012
1 parent aed606e commit 7764b52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/twl4030-madc-hwmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static int twl4030_madc_hwmon_remove(struct platform_device *pdev)

static struct platform_driver twl4030_madc_hwmon_driver = {
.probe = twl4030_madc_hwmon_probe,
.remove = __exit_p(twl4030_madc_hwmon_remove),
.remove = twl4030_madc_hwmon_remove,
.driver = {
.name = "twl4030_madc_hwmon",
.owner = THIS_MODULE,
Expand Down

0 comments on commit 7764b52

Please sign in to comment.