Skip to contentSkip to conversation

regulator: anatop: Use correct __devexit_p annotation

PATCH Applied Axel Lin 2 participants 2 messages May 23, 2012 Voltage and current regulator framework

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

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.

---
 drivers/regulator/anatop-regulator.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/regulator/anatop-regulator.c +1 -1
index 49b2112..8fbb6b6 100644
@@ -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
Applied
#1 lore raw
Quoted 2 lines · Axel Lin

__devexit functions are discarded when CONFIG_HOTPLUG is not set, so the symbol needs to be referenced carefully.

Applied, thanks.