From: Axel Lin Date: Wed, 23 May 2012 01:08:08 +0000 (+0800) Subject: regulator: anatop: Use correct __devexit_p annotation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0c09d3150902d8ca7e763d508ac1a93701b21321;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git regulator: anatop: Use correct __devexit_p annotation __devexit functions are discarded when CONFIG_HOTPLUG is not set, so the symbol needs to be referenced carefully. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/anatop-regulator.c b/drivers/regulator/anatop-regulator.c index 3660bace123..e82e7eaac0f 100644 --- a/drivers/regulator/anatop-regulator.c +++ b/drivers/regulator/anatop-regulator.c @@ -224,7 +224,7 @@ static struct platform_driver anatop_regulator_driver = { .of_match_table = of_anatop_regulator_match_tbl, }, .probe = anatop_regulator_probe, - .remove = anatop_regulator_remove, + .remove = __devexit_p(anatop_regulator_remove), }; static int __init anatop_regulator_init(void)