diff options
author | Priyanka Jain <priyanka.jain@nxp.com> | 2016-11-03 18:05:09 +0530 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2016-11-21 09:20:32 -0800 |
commit | b7401d0917257ee7c023feb40cd62627da025491 (patch) | |
tree | d915cee95f16c35b9da8185dee3a1eea80c1bdac /drivers/net | |
parent | fc35addea2c0fa5add065c5ea09e206d4cba1abd (diff) | |
download | u-boot-b7401d0917257ee7c023feb40cd62627da025491.tar.gz |
driver: net: ldpaa_eth: Fix missing bracket issue
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ldpaa_eth/ldpaa_eth.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c b/drivers/net/ldpaa_eth/ldpaa_eth.c index 75b2b6b049..4e61700d5d 100644 --- a/drivers/net/ldpaa_eth/ldpaa_eth.c +++ b/drivers/net/ldpaa_eth/ldpaa_eth.c @@ -420,13 +420,14 @@ static int ldpaa_eth_open(struct eth_device *net_dev, bd_t *bd) goto err_dpmac_setup; #ifdef CONFIG_PHYLIB - if (priv->phydev) + if (priv->phydev) { err = phy_startup(priv->phydev); if (err) { printf("%s: Could not initialize\n", priv->phydev->dev->name); goto err_dpamc_bind; } + } #else priv->phydev = (struct phy_device *)malloc(sizeof(struct phy_device)); memset(priv->phydev, 0, sizeof(struct phy_device)); |