diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-02-27 05:50:22 +0900 |
---|---|---|
committer | Kukjin Kim <kgene@kernel.org> | 2015-02-27 05:50:22 +0900 |
commit | 19c69dafad673f342b8eb9dbc6a1ac9fa38b4f9f (patch) | |
tree | 6afc6675034d3b5f21d4d8e398287cc135ee7ca9 /arch/arm/mach-s3c64xx/mach-smdk6410.c | |
parent | 484c213b106c2b9188744666693d57bb9fd5affe (diff) | |
download | linux-rt-19c69dafad673f342b8eb9dbc6a1ac9fa38b4f9f.tar.gz |
ARM: S3C64XX: fix __initdata section mismatch
smdk6410_b_pwr_5v_data is marked as __initdata, but referenced
from a structure that is not:
WARNING: arch/arm/mach-s3c64xx/built-in.o(.data+0x4c5c): Section mismatch in reference from the variable smdk6410_b_pwr_5v_data to the (unknown reference) .init.data:(unknown)
This removes the annotation to avoid an invalid pointer access
when the regulator driver accesses this variable.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
Diffstat (limited to 'arch/arm/mach-s3c64xx/mach-smdk6410.c')
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-smdk6410.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-s3c64xx/mach-smdk6410.c b/arch/arm/mach-s3c64xx/mach-smdk6410.c index 661eb662d051..b7447a92276e 100644 --- a/arch/arm/mach-s3c64xx/mach-smdk6410.c +++ b/arch/arm/mach-s3c64xx/mach-smdk6410.c @@ -209,7 +209,7 @@ static struct platform_device smdk6410_smsc911x = { }; #ifdef CONFIG_REGULATOR -static struct regulator_consumer_supply smdk6410_b_pwr_5v_consumers[] __initdata = { +static struct regulator_consumer_supply smdk6410_b_pwr_5v_consumers[] = { REGULATOR_SUPPLY("PVDD", "0-001b"), REGULATOR_SUPPLY("AVDD", "0-001b"), }; |