From patchwork Thu Mar 1 09:17:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 7034 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 64E1823DEE for ; Thu, 1 Mar 2012 09:24:18 +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 2CE39A18304 for ; Thu, 1 Mar 2012 09:24:18 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so695985iag.11 for ; Thu, 01 Mar 2012 01:24:18 -0800 (PST) Received: from mr.google.com ([10.50.89.201]) by 10.50.89.201 with SMTP id bq9mr3614118igb.55.1330593858023 (num_hops = 1); Thu, 01 Mar 2012 01:24:18 -0800 (PST) Received: by 10.50.89.201 with SMTP id bq9mr2977376igb.55.1330593857982; Thu, 01 Mar 2012 01:24:17 -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 k18csp12089ibg; Thu, 1 Mar 2012 01:24:17 -0800 (PST) Received: by 10.68.193.138 with SMTP id ho10mr98056pbc.80.1330593857136; Thu, 01 Mar 2012 01:24:17 -0800 (PST) Received: from mail-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by mx.google.com with ESMTPS id b6si2371455pbd.250.2012.03.01.01.24.16 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 01 Mar 2012 01:24:17 -0800 (PST) Received-SPF: neutral (google.com: 209.85.210.44 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.210.44; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.44 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-pz0-f44.google.com with SMTP id l33so2073016dak.17 for ; Thu, 01 Mar 2012 01:24:16 -0800 (PST) Received-SPF: pass (google.com: domain of tushar.behera@linaro.org designates 10.68.232.42 as permitted sender) client-ip=10.68.232.42; Received: from mr.google.com ([10.68.232.42]) by 10.68.232.42 with SMTP id tl10mr107318pbc.50.1330593856970 (num_hops = 1); Thu, 01 Mar 2012 01:24:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.68.232.42 with SMTP id tl10mr88336pbc.50.1330593856921; Thu, 01 Mar 2012 01:24:16 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id y3sm1605297pbr.46.2012.03.01.01.24.13 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 01 Mar 2012 01:24:16 -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 4/4] ARM: SAMSUNG: Add __init attribute to xxx_set_platdata() wrappers Date: Thu, 1 Mar 2012 14:47:26 +0530 Message-Id: <1330593446-663-5-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: ALoCoQmrCp8efwc49DJq2R8GQrkIvz7+OzVUS7kqHTDFMkItWt8zaQDXoLQzAaQuIjEBJ/nPrT5v s3c_set_platdata() is defined with __init attribute, hence all functions referencing this function should also be defined with __init attribute. Signed-off-by: Tushar Behera --- arch/arm/plat-samsung/devs.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-samsung/devs.c b/arch/arm/plat-samsung/devs.c index 75ff3b0..b7d4cdc 100644 --- a/arch/arm/plat-samsung/devs.c +++ b/arch/arm/plat-samsung/devs.c @@ -782,7 +782,7 @@ struct platform_device s3c_device_cfcon = { .resource = s3c_cfcon_resource, }; -void s3c_ide_set_platdata(struct s3c_ide_platdata *pdata) +void __init s3c_ide_set_platdata(struct s3c_ide_platdata *pdata) { s3c_set_platdata(pdata, sizeof(struct s3c_ide_platdata), &s3c_device_cfcon); @@ -1062,7 +1062,7 @@ struct platform_device s3c64xx_device_onenand1 = { .resource = s3c64xx_onenand1_resources, }; -void s3c64xx_onenand1_set_platdata(struct onenand_platform_data *pdata) +void __init s3c64xx_onenand1_set_platdata(struct onenand_platform_data *pdata) { s3c_set_platdata(pdata, sizeof(struct onenand_platform_data), &s3c64xx_device_onenand1);