mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-05 02:50:44 +09:00
driver: net: fsl-mc: modify the label name
The goto label name is misspelled it should be DPMAC not DPAMC Signed-off-by: Pankaj Bansal <pankaj.bansal@nxp.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
5d457ecbef
commit
afd6c6b470
@ -413,7 +413,7 @@ static int ldpaa_eth_open(struct eth_device *net_dev, bd_t *bd)
|
|||||||
if (err) {
|
if (err) {
|
||||||
printf("%s: Could not initialize\n",
|
printf("%s: Could not initialize\n",
|
||||||
priv->phydev->dev->name);
|
priv->phydev->dev->name);
|
||||||
goto err_dpamc_bind;
|
goto err_dpmac_bind;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
@ -441,13 +441,13 @@ static int ldpaa_eth_open(struct eth_device *net_dev, bd_t *bd)
|
|||||||
if (!priv->phydev->link) {
|
if (!priv->phydev->link) {
|
||||||
printf("%s: No link.\n", priv->phydev->dev->name);
|
printf("%s: No link.\n", priv->phydev->dev->name);
|
||||||
err = -1;
|
err = -1;
|
||||||
goto err_dpamc_bind;
|
goto err_dpmac_bind;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* DPMAC binding DPNI */
|
/* DPMAC binding DPNI */
|
||||||
err = ldpaa_dpmac_bind(priv);
|
err = ldpaa_dpmac_bind(priv);
|
||||||
if (err)
|
if (err)
|
||||||
goto err_dpamc_bind;
|
goto err_dpmac_bind;
|
||||||
|
|
||||||
/* DPNI initialization */
|
/* DPNI initialization */
|
||||||
err = ldpaa_dpni_setup(priv);
|
err = ldpaa_dpni_setup(priv);
|
||||||
@ -540,7 +540,7 @@ err_dpni_bind:
|
|||||||
err_dpbp_setup:
|
err_dpbp_setup:
|
||||||
dpni_close(dflt_mc_io, MC_CMD_NO_FLAGS, dflt_dpni->dpni_handle);
|
dpni_close(dflt_mc_io, MC_CMD_NO_FLAGS, dflt_dpni->dpni_handle);
|
||||||
err_dpni_setup:
|
err_dpni_setup:
|
||||||
err_dpamc_bind:
|
err_dpmac_bind:
|
||||||
dpmac_close(dflt_mc_io, MC_CMD_NO_FLAGS, priv->dpmac_handle);
|
dpmac_close(dflt_mc_io, MC_CMD_NO_FLAGS, priv->dpmac_handle);
|
||||||
dpmac_destroy(dflt_mc_io,
|
dpmac_destroy(dflt_mc_io,
|
||||||
dflt_dprc_handle,
|
dflt_dprc_handle,
|
||||||
|
Loading…
Reference in New Issue
Block a user