Skip to content

Commit

Permalink
mfd: twl4030-madc: Remove __exit_p annotation
Browse files Browse the repository at this point in the history
4740f73 "mfd: remove use of __devexit" removed the __devexit annotation
on the twl4030_madc_remove function, but left an __exit_p() present on the
pointer to this function. Using __exit_p was as wrong with the devexit in
place as it is now, but now we get a gcc warning about an unused function.

In order for the twl4030_madc_remove to work correctly in built-in code, we
have to remove the __exit_p.

Cc: Bill Pemberton <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
  • Loading branch information
arndb authored and Samuel Ortiz committed Mar 15, 2013
1 parent d52701d commit 0371541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/twl4030-madc.c
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ static int twl4030_madc_remove(struct platform_device *pdev)

static struct platform_driver twl4030_madc_driver = {
.probe = twl4030_madc_probe,
.remove = __exit_p(twl4030_madc_remove),
.remove = twl4030_madc_remove,
.driver = {
.name = "twl4030_madc",
.owner = THIS_MODULE,
Expand Down

0 comments on commit 0371541

Please sign in to comment.