From: Tushar Behera Date: Fri, 9 Mar 2012 16:02:33 +0000 (-0800) Subject: ARM: EXYNOS: Add __init attribute to nuri_camera_init() X-Git-Tag: v3.12-rc1~3575^2~4^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fdaf13083817a2240ea7569658760086c880bdc2;p=kernel%2Fkernel-generic.git ARM: EXYNOS: Add __init attribute to nuri_camera_init() s3c_set_platdata() is defined with __init attribute, hence all functions referencing this function should also be defined with __init attribute. nuri_camera_init() is referenced only in '__init nuri_machine_init()', thus this change won't put any additional constraint on the usage of nuri_camera_init(). Signed-off-by: Tushar Behera Acked-by: Sylwester Nawrocki Signed-off-by: Kukjin Kim --- diff --git a/arch/arm/mach-exynos/mach-nuri.c b/arch/arm/mach-exynos/mach-nuri.c index cc8d2f6..a0ca630 100644 --- a/arch/arm/mach-exynos/mach-nuri.c +++ b/arch/arm/mach-exynos/mach-nuri.c @@ -1258,7 +1258,7 @@ static struct gpio nuri_camera_gpios[] = { { GPIO_CAM_MEGA_RST, GPIOF_OUT_INIT_LOW, "CAM_8M_NRST" }, }; -static void nuri_camera_init(void) +static void __init nuri_camera_init(void) { s3c_set_platdata(&mipi_csis_platdata, sizeof(mipi_csis_platdata), &s5p_device_mipi_csis0);