regulator: anatop: Use correct __devexit_p annotation
PATCH 1/1 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 <[email protected]>
--- drivers/regulator/anatop-regulator.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/regulator/anatop-regulator.c +1 -1
@@ -226,7 +226,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 )
Signature · 1 line
1.7.5.4
Mark Brown
AppliedQuoted 2 lines · Axel Lin
__devexitfunctions are discarded whenCONFIG_HOTPLUGis not set, so the symbol needs to be referenced carefully.
Applied, thanks.