mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/3] net: designware: don't depend on CONFIG_OFTREE
@ 2015-03-01 21:06 Lucas Stach
  2015-03-01 21:06 ` [PATCH 2/3] menu: depend on !CONFIG_SHELL_NONE Lucas Stach
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Lucas Stach @ 2015-03-01 21:06 UTC (permalink / raw)
  To: barebox

This driver is written in a way that is should also work without
DT, but it had a compile time dependency on CONFIG_OFTREE.

Fixes:
drivers/built-in.o: In function `dwc_probe_dt':
drivers/net/designware.c:413: undefined reference to `of_get_phy_mode'

Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
 drivers/net/designware.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/designware.c b/drivers/net/designware.c
index 49ed0b192231..29a6047c7f1a 100644
--- a/drivers/net/designware.c
+++ b/drivers/net/designware.c
@@ -406,6 +406,9 @@ static void dwc_version(struct device_d *dev, u32 hwid)
 
 static int dwc_probe_dt(struct device_d *dev, struct dw_eth_dev *priv)
 {
+	if (!IS_ENABLED(CONFIG_OFTREE))
+		return -ENODEV;
+
 	priv->phy_addr = -1;
 	priv->interface = of_get_phy_mode(dev->device_node);
 
-- 
2.1.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-03-02  6:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-01 21:06 [PATCH 1/3] net: designware: don't depend on CONFIG_OFTREE Lucas Stach
2015-03-01 21:06 ` [PATCH 2/3] menu: depend on !CONFIG_SHELL_NONE Lucas Stach
2015-03-01 21:06 ` [PATCH 3/3] ARM: MIOA701: select POLLER Lucas Stach
2015-03-02  6:35 ` [PATCH 1/3] net: designware: don't depend on CONFIG_OFTREE Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox