From: Wolfram Sang Date: Fri, 8 Jul 2011 09:16:56 +0000 (+0900) Subject: ARM: S3C2440: fix section mismatch on mini2440 X-Git-Tag: v3.0-rc7~15^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d34c1fcddc3a159d52576c656f8caabc0cf4894b;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git ARM: S3C2440: fix section mismatch on mini2440 If mini2440_init() is in __init, mini2440_parse_features() should also be in __init. Fixes: (.text+0x9adc): Section mismatch in reference from the function mini2440_parse_features.clone.0() to the (unknown reference) .init.data:(unknown) The function mini2440_parse_features.clone.0() references the (unknown reference) __initdata (unknown). Signed-off-by: Wolfram Sang Cc: Michel Pollet Signed-off-by: Kukjin Kim --- diff --git a/arch/arm/mach-s3c2440/mach-mini2440.c b/arch/arm/mach-s3c2440/mach-mini2440.c index dd3120d..fc2dc0b 100644 --- a/arch/arm/mach-s3c2440/mach-mini2440.c +++ b/arch/arm/mach-s3c2440/mach-mini2440.c @@ -552,7 +552,7 @@ struct mini2440_features_t { struct platform_device *optional[8]; }; -static void mini2440_parse_features( +static void __init mini2440_parse_features( struct mini2440_features_t * features, const char * features_str ) {