summaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-05-23 03:08:08 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-06-04 11:42:49 +0200
commit0c09d3150902d8ca7e763d508ac1a93701b21321 (patch)
treeaeed4236f67ae10f6ebcb77f3ba85a27305c3494 /drivers/regulator
parentregulator: palmas: Fix wrong kfree calls (diff)
downloadlinux-0c09d3150902d8ca7e763d508ac1a93701b21321.tar.xz
linux-0c09d3150902d8ca7e763d508ac1a93701b21321.zip
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 <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/anatop-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/anatop-regulator.c b/drivers/regulator/anatop-regulator.c
index 3660bace123c..e82e7eaac0f1 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)