[PATCH 05/14] ARM: OMAP3+: SmartReflex: use __devexit_p annotation

Jean Pihet jean.pihet at newoldbits.com
Wed Feb 8 12:43:50 EST 2012


Use __devexit_p() in struct platform_driver for functions that are
defined with __devexit.

Reported-by: Felipe Balbi <balbi at ti.com>
Signed-off-by: Jean Pihet <j-pihet at ti.com>
---
 arch/arm/mach-omap2/smartreflex.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c
index 9c39484..24ba80b 100644
--- a/arch/arm/mach-omap2/smartreflex.c
+++ b/arch/arm/mach-omap2/smartreflex.c
@@ -1079,7 +1079,7 @@ static void __devexit omap_sr_shutdown(struct platform_device *pdev)
 }
 
 static struct platform_driver smartreflex_driver = {
-	.remove         = omap_sr_remove,
+	.remove         = __devexit_p(omap_sr_remove),
 	.shutdown	= __devexit_p(omap_sr_shutdown),
 	.driver		= {
 		.name	= "smartreflex",
-- 
1.7.5.4




More information about the linux-arm-kernel mailing list