diff options
author | Kristoffer Ericson <kristoffer.ericson@gmail.com> | 2008-10-21 14:47:22 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-10-21 17:51:46 -0400 |
commit | 5d43839ab9988f236cdda1ed073d6916857bc3c5 (patch) | |
tree | 4edc2b132bc0956cd22b21ab5846cbc549163a77 | |
parent | d1a7fddf420b1f5a7d9a899b3388026084a67d33 (diff) |
[ARM] 5315/1: Fix section mismatch warning (sa1111)
This patch fixes the section mismatch warning from
sa1111.o at buildtime.
CC arch/arm/common/sa1111.o
LD arch/arm/common/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
WARNING: vmlinux.o(.text+0x87f4): Section mismatch in reference from the function sa1111_probe() to the function .devinit.text:sa1110_mb_enable()
The function sa1111_probe() references
the function __devinit sa1110_mb_enable().
This is often because sa1111_probe lacks a __devinit
annotation or the annotation of sa1110_mb_enable is wrong.
Signed-off-by: Kristoffer Ericson <kristoffer.ericson@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | arch/arm/common/sa1111.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/common/sa1111.c b/arch/arm/common/sa1111.c index 6094c34d9bae..47ccec95f3e8 100644 --- a/arch/arm/common/sa1111.c +++ b/arch/arm/common/sa1111.c | |||
@@ -939,7 +939,7 @@ static int sa1111_resume(struct platform_device *dev) | |||
939 | #define sa1111_resume NULL | 939 | #define sa1111_resume NULL |
940 | #endif | 940 | #endif |
941 | 941 | ||
942 | static int sa1111_probe(struct platform_device *pdev) | 942 | static int __devinit sa1111_probe(struct platform_device *pdev) |
943 | { | 943 | { |
944 | struct resource *mem; | 944 | struct resource *mem; |
945 | int irq; | 945 | int irq; |