From patchwork Thu Mar 1 09:17:24 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 7032 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 0389D23DEE for ; Thu, 1 Mar 2012 09:24:11 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id C0228A18304 for ; Thu, 1 Mar 2012 09:24:10 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so695985iag.11 for ; Thu, 01 Mar 2012 01:24:10 -0800 (PST) Received: from mr.google.com ([10.50.95.230]) by 10.50.95.230 with SMTP id dn6mr9905720igb.0.1330593850627 (num_hops = 1); Thu, 01 Mar 2012 01:24:10 -0800 (PST) Received: by 10.50.95.230 with SMTP id dn6mr8103145igb.0.1330593850490; Thu, 01 Mar 2012 01:24:10 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.53.18 with SMTP id k18csp12083ibg; Thu, 1 Mar 2012 01:24:10 -0800 (PST) Received: by 10.68.135.137 with SMTP id ps9mr94674pbb.40.1330593849824; Thu, 01 Mar 2012 01:24:09 -0800 (PST) Received: from mail-pw0-f50.google.com (mail-pw0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id a4si2434549pbd.32.2012.03.01.01.24.09 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 01 Mar 2012 01:24:09 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) smtp.mail=tushar.behera@linaro.org Received: by mail-pw0-f50.google.com with SMTP id wz7so735328pbc.37 for ; Thu, 01 Mar 2012 01:24:09 -0800 (PST) Received-SPF: pass (google.com: domain of tushar.behera@linaro.org designates 10.68.223.161 as permitted sender) client-ip=10.68.223.161; Received: from mr.google.com ([10.68.223.161]) by 10.68.223.161 with SMTP id qv1mr96176pbc.2.1330593849663 (num_hops = 1); Thu, 01 Mar 2012 01:24:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.68.223.161 with SMTP id qv1mr80314pbc.2.1330593849613; Thu, 01 Mar 2012 01:24:09 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id y3sm1605297pbr.46.2012.03.01.01.24.05 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 01 Mar 2012 01:24:09 -0800 (PST) From: Tushar Behera To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: ben-linux@fluff.org, linux@arm.linux.org.uk, kgene.kim@samsung.com, kyungmin.park@samsung.com, patches@linaro.org Subject: [PATCH 2/4] ARM: EXYNOS: Add __init attribute to universal_camera_init() Date: Thu, 1 Mar 2012 14:47:24 +0530 Message-Id: <1330593446-663-3-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1330593446-663-1-git-send-email-tushar.behera@linaro.org> References: <1330593446-663-1-git-send-email-tushar.behera@linaro.org> X-Gm-Message-State: ALoCoQlrrI7f1V9IqHsnBxnC9Wi9xE4evZKEQ+0U+t7+Ykb7mHonjbBw94Sby0Cn+hmFUZSNwvU6 s3c_set_platdata() is defined with __init attribute, hence all functions referencing this function should also be defined with __init attribute. universal_camera_init() is referenced only in '__init universal_machine_init()', thus this change won't put any additional constraint on the usage of universal_camera_init(). Signed-off-by: Tushar Behera Acked-by: Sylwester Nawrocki --- arch/arm/mach-exynos/mach-universal_c210.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-exynos/mach-universal_c210.c b/arch/arm/mach-exynos/mach-universal_c210.c index 6017a21..be50e5e 100644 --- a/arch/arm/mach-exynos/mach-universal_c210.c +++ b/arch/arm/mach-exynos/mach-universal_c210.c @@ -990,7 +990,7 @@ static struct gpio universal_camera_gpios[] = { { GPIO_CAM_VGA_NSTBY, GPIOF_OUT_INIT_LOW, "CAM_VGA_NSTBY" }, }; -static void universal_camera_init(void) +static void __init universal_camera_init(void) { s3c_set_platdata(&mipi_csis_platdata, sizeof(mipi_csis_platdata), &s5p_device_mipi_csis0);