summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWenyou Yang <wenyou.yang@atmel.com>2016-11-02 10:06:57 +0800
committerJoe Hershberger <joe.hershberger@ni.com>2017-02-07 10:54:31 -0600
commit6d2c1d26ee58b46f042b23af62209c2e1860bb24 (patch)
tree0d3b0894b143c0bb52bc9c871409d0e5731b79a1
parent577aa3b3587193ee078ce83d918604da6ac84dd5 (diff)
downloadu-boot-imx-6d2c1d26ee58b46f042b23af62209c2e1860bb24.zip
u-boot-imx-6d2c1d26ee58b46f042b23af62209c2e1860bb24.tar.gz
u-boot-imx-6d2c1d26ee58b46f042b23af62209c2e1860bb24.tar.bz2
net: macb: Remove redundant #ifdef CONFIG_DM_ETH
Remove the redundant #ifdef CONFIG_DM_ETH/#endif. Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
-rw-r--r--drivers/net/macb.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index f97b82a..67d820f 100644
--- a/drivers/net/macb.c
+++ b/drivers/net/macb.c
@@ -1030,8 +1030,6 @@ static int macb_eth_probe(struct udevice *dev)
{
struct eth_pdata *pdata = dev_get_platdata(dev);
struct macb_device *macb = dev_get_priv(dev);
-
-#ifdef CONFIG_DM_ETH
const char *phy_mode;
int ret;
@@ -1042,7 +1040,6 @@ static int macb_eth_probe(struct udevice *dev)
debug("%s: Invalid PHY interface '%s'\n", __func__, phy_mode);
return -EINVAL;
}
-#endif
macb->regs = (void *)pdata->iobase;