From patchwork Tue Nov 6 02:34:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 1702521 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 33A4D3FCDE for ; Tue, 6 Nov 2012 02:37:13 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TVZ0l-0007xF-Mp; Tue, 06 Nov 2012 02:35:32 +0000 Received: from mail-pb0-f49.google.com ([209.85.160.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TVZ0g-0007vq-Kv for linux-arm-kernel@lists.infradead.org; Tue, 06 Nov 2012 02:35:28 +0000 Received: by mail-pb0-f49.google.com with SMTP id xa7so27226pbc.36 for ; Mon, 05 Nov 2012 18:35:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:subject:from:to:cc:date:content-type:x-mailer :content-transfer-encoding:mime-version:x-gm-message-state; bh=7CDzg6TQvgLfNLjSBnBILIytAX1VGN1ZtrblXCL5GwE=; b=XkKEHr/6ci06He0B+z9hTAW92HS9R0IciK0P2HuB5eycNZqLxnVJB/+QRDj+0nLlas D2JSMmr3y8VFYoz1gFsnRYMxgPW/N1s8l5nSPkYNkdjDkmiid9gKcIhU+Ca2hkhWui7u roeBOY9fCrX3pBg/x7/2T251i75cFFckiKEXQqu8nbKH5Gl61Utdi6Tm3s+a2uGfHlP8 u34TbeUl3bp7HL0SRKv9Uc34rTG/78PDGfv0D9XFxmu+KcpTJfIQGAkCboIb7CcX3wcp 0erCLLma9OFsRB9CqHyUvTvAjKH5MGLxygNNFYLCcVTFMM060MzbaZ5TK3Kl9BWYJgfI k8Cg== Received: by 10.68.247.196 with SMTP id yg4mr36437727pbc.167.1352169324057; Mon, 05 Nov 2012 18:35:24 -0800 (PST) Received: from [192.168.0.100] (114-40-20-56.dynamic.hinet.net. [114.40.20.56]) by mx.google.com with ESMTPS id ug6sm3384486pbc.4.2012.11.05.18.34.36 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 05 Nov 2012 18:35:23 -0800 (PST) Message-ID: <1352169260.2625.4.camel@phoenix> Subject: [PATCH] clk: spear: Add stub functions for spear3[0|1|2]0_clk_init() From: Axel Lin To: Viresh Kumar Date: Tue, 06 Nov 2012 10:34:20 +0800 X-Mailer: Evolution 3.2.3-0ubuntu6 Mime-Version: 1.0 X-Gm-Message-State: ALoCoQkWiSs4UYe2yucffMbBs5GItAKCvMUUEj9CMB1ZG2BY5B51JE6h+Hxm/KMv7mz1N2Rh3VOc X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121105_213526_884406_E961E236 X-CRM114-Status: GOOD ( 11.41 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.49 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 1.7 URIBL_BLACK Contains an URL listed in the URIBL blacklist [URIs: ingics.com] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: spear-devel@list.st.com, Mike Turquette , linux-arm-kernel@lists.infradead.org, Arnd Bergmann , linux-kernel@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This fixes compile error if one of SPEAr3xx implementations is not selected. CC drivers/clk/spear/spear3xx_clock.o drivers/clk/spear/spear3xx_clock.c: In function 'spear3xx_clk_init': drivers/clk/spear/spear3xx_clock.c:599:3: error: implicit declaration of function 'spear300_clk_init' [-Werror=implicit-function-declaration] drivers/clk/spear/spear3xx_clock.c:601:3: error: implicit declaration of function 'spear310_clk_init' [-Werror=implicit-function-declaration] drivers/clk/spear/spear3xx_clock.c:603:3: error: implicit declaration of function 'spear320_clk_init' [-Werror=implicit-function-declaration] cc1: some warnings being treated as errors make[3]: *** [drivers/clk/spear/spear3xx_clock.o] Error 1 make[2]: *** [drivers/clk/spear] Error 2 make[1]: *** [drivers/clk] Error 2 make: *** [drivers] Error 2 Signed-off-by: Axel Lin Acked-by: Viresh Kumar --- drivers/clk/spear/spear3xx_clock.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/clk/spear/spear3xx_clock.c b/drivers/clk/spear/spear3xx_clock.c index c315745..59049cf 100644 --- a/drivers/clk/spear/spear3xx_clock.c +++ b/drivers/clk/spear/spear3xx_clock.c @@ -157,6 +157,8 @@ static void __init spear300_clk_init(void) 1); clk_register_clkdev(clk, NULL, "a0000000.kbd"); } +#else +static inline void spear300_clk_init(void) { } #endif /* array of all spear 310 clock lookups */ @@ -197,6 +199,8 @@ static void __init spear310_clk_init(void) 1); clk_register_clkdev(clk, NULL, "b2200000.serial"); } +#else +static inline void spear310_clk_init(void) { } #endif /* array of all spear 320 clock lookups */ @@ -336,6 +340,8 @@ static void __init spear320_clk_init(void) &_lock); clk_register_clkdev(clk, NULL, "60100000.serial"); } +#else +static inline void spear320_clk_init(void) { } #endif void __init spear3xx_clk_init(void)