diff options
author | Afzal Mohammed <afzal@ti.com> | 2012-10-04 04:31:57 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-10-08 18:43:57 -0400 |
commit | 61687c611a1c4f7906d2f6f591da18d0b092ad34 (patch) | |
tree | 305e266bbfd822415138339204bd3202f95589bb /arch/arm/mach-omap2/gpmc.c | |
parent | 533b298110475804b15b93475389736140bf4aa9 (diff) |
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/gpmc.c')
-rw-r--r-- | arch/arm/mach-omap2/gpmc.c | 4 |
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) | |||
838 | return request_irq(gpmc_irq, gpmc_handle_irq, 0, "gpmc", NULL); | 838 | return request_irq(gpmc_irq, gpmc_handle_irq, 0, "gpmc", NULL); |
839 | } | 839 | } |
840 | 840 | ||
841 | static __exit int gpmc_free_irq(void) | 841 | static __devexit int gpmc_free_irq(void) |
842 | { | 842 | { |
843 | int i; | 843 | int i; |
844 | 844 | ||
@@ -944,7 +944,7 @@ static __devinit int gpmc_probe(struct platform_device *pdev) | |||
944 | return 0; | 944 | return 0; |
945 | } | 945 | } |
946 | 946 | ||
947 | static __exit int gpmc_remove(struct platform_device *pdev) | 947 | static __devexit int gpmc_remove(struct platform_device *pdev) |
948 | { | 948 | { |
949 | gpmc_free_irq(); | 949 | gpmc_free_irq(); |
950 | gpmc_mem_exit(); | 950 | gpmc_mem_exit(); |