From: Tony Lindgren Date: Thu, 23 Feb 2012 22:55:40 +0000 (-0800) Subject: ARM: OMAP2+: Fix devexit for smartreflex when CONFIG_HOTPLUG is not set X-Git-Tag: upstream/snapshot3+hdmi~7850^2~7^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=149f1d5c8d2fd6879cdf93ca70f1cb745e698a1e;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git ARM: OMAP2+: Fix devexit for smartreflex when CONFIG_HOTPLUG is not set Otherwise we get: `omap_sr_remove' referenced in section `.data' of arch/arm/mach-omap2/built-in.o: defined in discarded section `.devexit.text' of arch/arm/mach-omap2/built-in.o Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c index 7e755bb..47c77a1 100644 --- a/arch/arm/mach-omap2/smartreflex.c +++ b/arch/arm/mach-omap2/smartreflex.c @@ -1012,7 +1012,7 @@ static int __devexit omap_sr_remove(struct platform_device *pdev) } static struct platform_driver smartreflex_driver = { - .remove = omap_sr_remove, + .remove = __devexit_p(omap_sr_remove), .driver = { .name = "smartreflex", },