aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/designware.h
diff options
context:
space:
mode:
authorSimon Glass2015-04-05 16:07:41 -0600
committerSimon Glass2015-04-18 11:11:37 -0600
commit75577ba45a42420d91ccfd9b9ce4ea1298f507ef (patch)
treef6671dc41d825764f43973deb07d3553134ae4d0 /drivers/net/designware.h
parent64dcd25f55a06953bb1ed234ffbad233c107bc15 (diff)
dm: net: Adjust designware driver to support driver model
Add driver model support to the designware driver. This reuses most of the existing code except for some duplication in the probe() method. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net/designware.h')
-rw-r--r--drivers/net/designware.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/designware.h b/drivers/net/designware.h
index 49d900cb3f9..4b9ec39cc82 100644
--- a/drivers/net/designware.h
+++ b/drivers/net/designware.h
@@ -228,8 +228,9 @@ struct dw_eth_dev {
struct eth_mac_regs *mac_regs_p;
struct eth_dma_regs *dma_regs_p;
-
+#ifndef CONFIG_DM_ETH
struct eth_device *dev;
+#endif
struct phy_device *phydev;
struct mii_dev *bus;
};