From patchwork Thu Mar 1 09:17:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 7033 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 A779824942 for ; Thu, 1 Mar 2012 09:24:14 +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 71742A182FD for ; Thu, 1 Mar 2012 09:24:14 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so695985iag.11 for ; Thu, 01 Mar 2012 01:24:14 -0800 (PST) Received: from mr.google.com ([10.50.207.72]) by 10.50.207.72 with SMTP id lu8mr3867045igc.0.1330593854303 (num_hops = 1); Thu, 01 Mar 2012 01:24:14 -0800 (PST) Received: by 10.50.207.72 with SMTP id lu8mr3162476igc.0.1330593854262; Thu, 01 Mar 2012 01:24:14 -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 k18csp12085ibg; Thu, 1 Mar 2012 01:24:13 -0800 (PST) Received: by 10.68.129.162 with SMTP id nx2mr152032pbb.94.1330593853594; Thu, 01 Mar 2012 01:24:13 -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.13 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 01 Mar 2012 01:24:13 -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:13 -0800 (PST) Received-SPF: pass (google.com: domain of tushar.behera@linaro.org designates 10.68.217.136 as permitted sender) client-ip=10.68.217.136; Received: from mr.google.com ([10.68.217.136]) by 10.68.217.136 with SMTP id oy8mr92069pbc.122.1330593853438 (num_hops = 1); Thu, 01 Mar 2012 01:24:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.68.217.136 with SMTP id oy8mr77028pbc.122.1330593853319; Thu, 01 Mar 2012 01:24:13 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id y3sm1605297pbr.46.2012.03.01.01.24.09 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 01 Mar 2012 01:24:12 -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 3/4] ARM: SAMSUNG: Add __init attribute to samsung_bl_set() Date: Thu, 1 Mar 2012 14:47:25 +0530 Message-Id: <1330593446-663-4-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: ALoCoQnR7fVuyAhYDFQiYj+ofklQiGLPlOX+nhiz/Q1A72w9njZ58SMKAlPiQ9ynjmHb/6Adyzxv s3c_set_platdata() is defined with __init attribute, hence all functions referencing this function should also be defined with __init attribute. samsung_bl_set() is referenced only in '__init xxx_machine_init()' functions, thus this change won't put any additional constraint on the usage of samsung_bl_set(). Signed-off-by: Tushar Behera --- arch/arm/plat-samsung/dev-backlight.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/plat-samsung/dev-backlight.c b/arch/arm/plat-samsung/dev-backlight.c index 2254920..5f197dc 100644 --- a/arch/arm/plat-samsung/dev-backlight.c +++ b/arch/arm/plat-samsung/dev-backlight.c @@ -77,7 +77,7 @@ static struct platform_device samsung_dfl_bl_device __initdata = { * @gpio_info: structure containing GPIO info for PWM timer * @bl_data: structure containing Backlight control data */ -void samsung_bl_set(struct samsung_bl_gpio_info *gpio_info, +void __init samsung_bl_set(struct samsung_bl_gpio_info *gpio_info, struct platform_pwm_backlight_data *bl_data) { int ret = 0;