linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: richard.zhao@freescale.com (Richard Zhao)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: imx6q: make ksz9021rn_phy_fixup depends on config of FEC
Date: Tue, 8 May 2012 21:21:15 +0800	[thread overview]
Message-ID: <1336483275-8610-1-git-send-email-richard.zhao@freescale.com> (raw)
In-Reply-To: <1336478520.23308.36.camel@sauron.fi.intel.com>

Fix build error without choose fec driver.

Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
---
 arch/arm/mach-imx/mach-imx6q.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c
index d25c5d8..999de69 100644
--- a/arch/arm/mach-imx/mach-imx6q.c
+++ b/arch/arm/mach-imx/mach-imx6q.c
@@ -60,6 +60,7 @@ soft:
 	soft_restart(0);
 }
 
+#if defined(CONFIG_FEC) || defined(CONFIG_FEC_MODULE)
 /* For imx6q sabrelite board: set KSZ9021RN RGMII pad skew */
 static int ksz9021rn_phy_fixup(struct phy_device *phydev)
 {
@@ -74,11 +75,14 @@ static int ksz9021rn_phy_fixup(struct phy_device *phydev)
 
 	return 0;
 }
+#endif
 
 static void __init imx6q_sabrelite_init(void)
 {
+#if defined(CONFIG_FEC) || defined(CONFIG_FEC_MODULE)
 	phy_register_fixup_for_uid(PHY_ID_KSZ9021, MICREL_PHY_ID_MASK,
 				ksz9021rn_phy_fixup);
+#endif
 }
 
 static void __init imx6q_init_machine(void)
-- 
1.7.5.4

  reply	other threads:[~2012-05-08 13:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-08 12:02 compilation issue Artem Bityutskiy
2012-05-08 13:21 ` Richard Zhao [this message]
2012-05-08 13:47   ` [PATCH] ARM: imx6q: make ksz9021rn_phy_fixup depends on config of FEC Artem Bityutskiy
2012-05-08 13:46 ` [PATCH] ARM: imx6q: register phy fixup only when CONFIG_PHYLIB is enabled Shawn Guo
2012-05-09  0:25   ` Richard Zhao
2012-05-09  0:57     ` Shawn Guo

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=1336483275-8610-1-git-send-email-richard.zhao@freescale.com \
    --to=richard.zhao@freescale.com \
    --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).