From patchwork Wed Nov 2 11:03:55 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Hui X-Patchwork-Id: 4892 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 F10DB23DC3 for ; Wed, 2 Nov 2011 10:56:35 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id E6354A1881B for ; Wed, 2 Nov 2011 10:56:35 +0000 (UTC) Received: by mail-fx0-f52.google.com with SMTP id n26so367302faa.11 for ; Wed, 02 Nov 2011 03:56:35 -0700 (PDT) Received: by 10.223.15.10 with SMTP id i10mr7676784faa.17.1320231395799; Wed, 02 Nov 2011 03:56:35 -0700 (PDT) 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.152.14.103 with SMTP id o7cs44005lac; Wed, 2 Nov 2011 03:56:35 -0700 (PDT) Received: by 10.220.182.1 with SMTP id ca1mr283891vcb.203.1320231393492; Wed, 02 Nov 2011 03:56:33 -0700 (PDT) Received: from ch1outboundpool.messaging.microsoft.com (ch1ehsobe003.messaging.microsoft.com. [216.32.181.183]) by mx.google.com with ESMTPS id kl6si112359vcb.81.2011.11.02.03.56.32 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 02 Nov 2011 03:56:33 -0700 (PDT) Received-SPF: neutral (google.com: 216.32.181.183 is neither permitted nor denied by best guess record for domain of jason.hui@linaro.org) client-ip=216.32.181.183; Authentication-Results: mx.google.com; spf=neutral (google.com: 216.32.181.183 is neither permitted nor denied by best guess record for domain of jason.hui@linaro.org) smtp.mail=jason.hui@linaro.org Received: from mail14-ch1-R.bigfish.com (10.43.68.242) by CH1EHSOBE018.bigfish.com (10.43.70.68) with Microsoft SMTP Server id 14.1.225.22; Wed, 2 Nov 2011 10:56:18 +0000 Received: from mail14-ch1 (localhost.localdomain [127.0.0.1]) by mail14-ch1-R.bigfish.com (Postfix) with ESMTP id D4C581982C4; Wed, 2 Nov 2011 10:56:25 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275dhz2dh87h2a8h668h839h) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPVD:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-FB-SS: 13, X-FB-DOMAIN-IP-MATCH: fail Received: from mail14-ch1 (localhost.localdomain [127.0.0.1]) by mail14-ch1 (MessageSwitch) id 1320231385538623_7638; Wed, 2 Nov 2011 10:56:25 +0000 (UTC) Received: from CH1EHSMHS024.bigfish.com (snatpool1.int.messaging.microsoft.com [10.43.68.240]) by mail14-ch1.bigfish.com (Postfix) with ESMTP id 61930CF8052; Wed, 2 Nov 2011 10:56:25 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CH1EHSMHS024.bigfish.com (10.43.70.24) with Microsoft SMTP Server (TLS) id 14.1.225.22; Wed, 2 Nov 2011 10:56:31 +0000 Received: from az33smr01.freescale.net (10.64.34.199) by 039-SN1MMR1-003.039d.mgd.msft.net (10.84.1.16) with Microsoft SMTP Server id 14.1.339.2; Wed, 2 Nov 2011 05:56:30 -0500 Received: from r64343-desktop.ap.freescale.net (r64343-desktop.ap.freescale.net [10.192.242.36]) by az33smr01.freescale.net (8.13.1/8.13.0) with ESMTP id pA2AuJnP011228; Wed, 2 Nov 2011 05:56:28 -0500 (CDT) From: Jason Liu To: CC: , , , Subject: [PATCH v3 2/3] ARM:i.MX: fix the build error in clock-mx51-mx53.c Date: Wed, 2 Nov 2011 19:03:55 +0800 Message-ID: <1320231836-9555-5-git-send-email-jason.hui@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1320231836-9555-1-git-send-email-jason.hui@linaro.org> References: <1320231836-9555-1-git-send-email-jason.hui@linaro.org> MIME-Version: 1.0 X-OriginatorOrg: sigmatel.com arch/arm/mach-mx5/clock-mx51-mx53.c: In function 'clk_get_freq_dt': arch/arm/mach-mx5/clock-mx51-mx53.c:1643: error: implicit declaration of function 'for_each_compatible_node' arch/arm/mach-mx5/clock-mx51-mx53.c:1643: error: expected ';' before '{' token Signed-off-by: Jason Liu --- arch/arm/mach-mx5/clock-mx51-mx53.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-mx5/clock-mx51-mx53.c b/arch/arm/mach-mx5/clock-mx51-mx53.c index 2aacf41..7c373b83 100644 --- a/arch/arm/mach-mx5/clock-mx51-mx53.c +++ b/arch/arm/mach-mx5/clock-mx51-mx53.c @@ -1637,6 +1637,7 @@ int __init mx53_clocks_init(unsigned long ckil, unsigned long osc, static void __init clk_get_freq_dt(unsigned long *ckil, unsigned long *osc, unsigned long *ckih1, unsigned long *ckih2) { +#ifdef CONFIG_OF struct device_node *np; /* retrieve the freqency of fixed clocks from device tree */ @@ -1654,6 +1655,7 @@ static void __init clk_get_freq_dt(unsigned long *ckil, unsigned long *osc, else if (of_device_is_compatible(np, "fsl,imx-ckih2")) *ckih2 = rate; } +#endif } int __init mx51_clocks_init_dt(void)