ARM: EXYNOS: Add __init attribute to nuri_camera_init()
authorTushar Behera <tushar.behera@linaro.org>
Fri, 9 Mar 2012 16:02:33 +0000 (08:02 -0800)
committerKukjin Kim <kgene.kim@samsung.com>
Sun, 11 Mar 2012 06:32:25 +0000 (22:32 -0800)
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 <tushar.behera@linaro.org>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-exynos/mach-nuri.c

index cc8d2f6bab2b2749ca92a45b2e5ce2d62375ee0a..a0ca6307e076dc79b382959ee6428a2d38c40a26 100644 (file)
@@ -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);