hwmon: (lm78) Add missing __devexit_p()
authorMike Frysinger <vapier@gentoo.org>
Mon, 1 Jun 2009 11:46:49 +0000 (13:46 +0200)
committerJean Delvare <khali@linux-fr.org>
Mon, 1 Jun 2009 11:46:49 +0000 (13:46 +0200)
The remove function uses __devexit, so the .remove assignment needs
__devexit_p() to fix a build error with hotplug disabled.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/lm78.c

index b5e3b28516987d51a45f63bb45c3d59dceee090d..a1787fdf5b9f7a94d2578de6e2e710a6da0f372a 100644 (file)
@@ -182,7 +182,7 @@ static struct platform_driver lm78_isa_driver = {
                .name   = "lm78",
        },
        .probe          = lm78_isa_probe,
-       .remove         = lm78_isa_remove,
+       .remove         = __devexit_p(lm78_isa_remove),
 };