From patchwork Thu Mar 1 09:17:23 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 7031 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 E1AEE23EAE for ; Thu, 1 Mar 2012 09:24:06 +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 A4597A18308 for ; Thu, 1 Mar 2012 09:24:06 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so695985iag.11 for ; Thu, 01 Mar 2012 01:24:06 -0800 (PST) Received: from mr.google.com ([10.42.131.129]) by 10.42.131.129 with SMTP id z1mr2894196ics.53.1330593846514 (num_hops = 1); Thu, 01 Mar 2012 01:24:06 -0800 (PST) Received: by 10.42.131.129 with SMTP id z1mr2367903ics.53.1330593846465; Thu, 01 Mar 2012 01:24:06 -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 k18csp12081ibg; Thu, 1 Mar 2012 01:24:06 -0800 (PST) Received: by 10.68.233.5 with SMTP id ts5mr149453pbc.109.1330593845813; Thu, 01 Mar 2012 01:24:05 -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.05 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 01 Mar 2012 01:24:05 -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 pbcwz7 with SMTP id wz7so735328pbc.37 for ; Thu, 01 Mar 2012 01:24:05 -0800 (PST) Received-SPF: pass (google.com: domain of tushar.behera@linaro.org designates 10.68.129.137 as permitted sender) client-ip=10.68.129.137; Received: from mr.google.com ([10.68.129.137]) by 10.68.129.137 with SMTP id nw9mr91567pbb.73.1330593845615 (num_hops = 1); Thu, 01 Mar 2012 01:24:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.68.129.137 with SMTP id nw9mr76916pbb.73.1330593845563; Thu, 01 Mar 2012 01:24:05 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id y3sm1605297pbr.46.2012.03.01.01.24.02 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 01 Mar 2012 01:24:04 -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 1/4] ARM: EXYNOS: Add __init attribute to nuri_camera_init() Date: Thu, 1 Mar 2012 14:47:23 +0530 Message-Id: <1330593446-663-2-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: ALoCoQm9a3/rBfMebRUKNVPKqyAX5mBAO1P78joTrelOh1RuMXdAV6II1oiYsU0Amh9oAeBdP2GI 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 --- arch/arm/mach-exynos/mach-nuri.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-exynos/mach-nuri.c b/arch/arm/mach-exynos/mach-nuri.c index a6b9162..7dc5c99 100644 --- a/arch/arm/mach-exynos/mach-nuri.c +++ b/arch/arm/mach-exynos/mach-nuri.c @@ -1255,7 +1255,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);