summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
authorAfzal Mohammed2012-10-04 10:31:57 +0200
committerTony Lindgren2012-10-09 00:43:57 +0200
commit61687c611a1c4f7906d2f6f591da18d0b092ad34 (patch)
tree305e266bbfd822415138339204bd3202f95589bb /arch/arm/mach-omap2
parentARM: OMAP: fix return value check in realtime_counter_init() (diff)
downloadkernel-qcow2-linux-61687c611a1c4f7906d2f6f591da18d0b092ad34.tar.gz
kernel-qcow2-linux-61687c611a1c4f7906d2f6f591da18d0b092ad34.tar.xz
kernel-qcow2-linux-61687c611a1c4f7906d2f6f591da18d0b092ad34.zip
ARM: OMAP2+: gpmc: annotate exit sections properly
compiler complained, `gpmc_remove' referenced in section `.data' of arch/arm/mach-omap2/built-in.o: defined in discarded section `.exit.text' of arch/arm/mach-omap2/built-in.o Annotate gpmc_remove function and dependents with __devexit. Reported-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Afzal Mohammed <afzal@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/gpmc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c
index 8ab1e1bde5e9..5ac5cf30406a 100644
--- a/arch/arm/mach-omap2/gpmc.c
+++ b/arch/arm/mach-omap2/gpmc.c
@@ -838,7 +838,7 @@ static int gpmc_setup_irq(void)
return request_irq(gpmc_irq, gpmc_handle_irq, 0, "gpmc", NULL);
}
-static __exit int gpmc_free_irq(void)
+static __devexit int gpmc_free_irq(void)
{
int i;
@@ -944,7 +944,7 @@ static __devinit int gpmc_probe(struct platform_device *pdev)
return 0;
}
-static __exit int gpmc_remove(struct platform_device *pdev)
+static __devexit int gpmc_remove(struct platform_device *pdev)
{
gpmc_free_irq();
gpmc_mem_exit();