]> asedeno.scripts.mit.edu Git - linux.git/commit
ARM: S3C64XX: fix __initdata section mismatch
authorArnd Bergmann <arnd@arndb.de>
Thu, 26 Feb 2015 20:50:22 +0000 (05:50 +0900)
committerKukjin Kim <kgene@kernel.org>
Thu, 26 Feb 2015 20:50:22 +0000 (05:50 +0900)
commit19c69dafad673f342b8eb9dbc6a1ac9fa38b4f9f
tree6afc6675034d3b5f21d4d8e398287cc135ee7ca9
parent484c213b106c2b9188744666693d57bb9fd5affe
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>
arch/arm/mach-s3c64xx/mach-smdk6410.c