[U-Boot] [PATCH][v2] driver: net: ldpaa_eth: Fix missing bracket issue
Joe Hershberger
joe.hershberger at gmail.com
Tue Nov 15 04:49:32 CET 2016
On Thu, Nov 3, 2016 at 7:35 AM, Priyanka Jain <priyanka.jain at nxp.com> wrote:
> Signed-off-by: Priyanka Jain <priyanka.jain at nxp.com>
> Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha at nxp.com>
> Signed-off-by: Ashish Kumar <Ashish.Kumar at nxp.com>
Acked-by: Joe Hershberger <joe.hershberger at ni.com>
> ---
> Changes for v2:
> Added signed-off-by
>
> 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 75b2b6b..4e61700 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));
> --
> 1.7.4.1
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
More information about the U-Boot
mailing list