linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: jason.hui@linaro.org (Jason Liu)
To: linux-arm-kernel@lists.infradead.org
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	[thread overview]
Message-ID: <1320231836-9555-5-git-send-email-jason.hui@linaro.org> (raw)
In-Reply-To: <1320231836-9555-1-git-send-email-jason.hui@linaro.org>

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 <jason.hui@linaro.org>
---
 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)
-- 
1.7.4.1

  parent reply	other threads:[~2011-11-02 11:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-02 11:03 [PATCH v3 0/3] ARM:i.MX fix compile errors and warnings Jason Liu
2011-11-02 11:03 ` [PATCH v3 1/3] ARM:i.MX: fix build error in tzic/avic.c Jason Liu
2011-11-02 11:03 ` [PATCH] ARM: mx25: Add the missing IIM base definition Jason Liu
2011-11-03  1:31   ` Jason Liu
2011-11-02 11:03 ` [PATCH] slub: doc: update the slabinfo.c file path Jason Liu
2011-11-02 13:03   ` Russell King - ARM Linux
2011-11-03  1:28     ` Jason Liu
2011-11-02 11:03 ` Jason Liu [this message]
2011-11-02 11:03 ` [PATCH v3 3/3] ARM:i.MX: fix the compile warnings in clock-mx51-mx53.c Jason Liu
2011-11-03  6:44   ` Sascha Hauer
2011-11-03  7:36     ` Jason Liu
2011-11-03  8:18       ` Sascha Hauer
2011-11-03  8:39         ` Jason Liu
2011-11-03 10:31           ` Jason Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1320231836-9555-5-git-send-email-jason.hui@linaro.org \
    --to=jason.hui@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).