b/arch/arm/mach-omap2/smartreflex.c
@@ -1002,7 +1002,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",
},
@@ -2105,7 +2105,7 @@ static int __devexit
omap_system_dma_remove(struct platform_device *pdev)
static struct platform_driver omap_system_dma_driver = {
.probe = omap_system_dma_probe,
- .remove = omap_system_dma_remove,
+ .remove = __devexit_p(omap_system_dma_remove),
.driver = {
.name = "omap_dma_system"
Pointers to functions that are annotated as __devexit should be protected by the __devexit_p() macro. This fixes a build failure for OMAP when defined(CONFIG_SMP_ON_UP) && !defined(CONFIG_DEBUG_SPINLOCK) Signed-off-by: Bjarne Steinsbo <bsteinsbo@gmail.com> --- arch/arm/mach-omap2/smartreflex.c | 2 +- arch/arm/plat-omap/dma.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) },