From: Mike Frysinger Date: Fri, 15 May 2009 18:50:33 +0000 (-0400) Subject: regulator: da903x: add missing __devexit_p() X-Git-Tag: firefly_0821_release~14139^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5b4662f098b47f68d7fcea9b065d1513547fef12;p=firefly-linux-kernel-4.4.55.git regulator: da903x: add missing __devexit_p() 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 CC: Liam Girdwood CC: Mike Rapoport CC: Eric Miao Acked-by: Eric Miao Signed-off-by: Liam Girdwood --- diff --git a/drivers/regulator/da903x.c b/drivers/regulator/da903x.c index 72b15495183c..c6628f5a0af7 100644 --- a/drivers/regulator/da903x.c +++ b/drivers/regulator/da903x.c @@ -497,7 +497,7 @@ static struct platform_driver da903x_regulator_driver = { .owner = THIS_MODULE, }, .probe = da903x_regulator_probe, - .remove = da903x_regulator_remove, + .remove = __devexit_p(da903x_regulator_remove), }; static int __init da903x_regulator_init(void)