diff mbox series

[U-Boot,v2,1/6] driver: net: fsl-mc: modify the label name

Message ID 20180730131505.16872-2-pankaj.bansal@nxp.com
State Superseded
Delegated to: Joe Hershberger
Headers show
Series driver: net: fsl-mc: Add support of multiple phys for dpmac | expand

Commit Message

Pankaj Bansal July 30, 2018, 1:15 p.m. UTC
The goto label name is misspelled it should be DPMAC not DPAMC

Signed-off-by: Pankaj Bansal <pankaj.bansal@nxp.com>
---

Notes:
    V2:
    - No change

 drivers/net/ldpaa_eth/ldpaa_eth.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Joe Hershberger July 30, 2018, 8:20 p.m. UTC | #1
On Mon, Jul 30, 2018 at 8:15 AM, Pankaj Bansal <pankaj.bansal@nxp.com> wrote:
> 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>
diff mbox series

Patch

diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c b/drivers/net/ldpaa_eth/ldpaa_eth.c
index 79facb4a44..18bc05790a 100644
--- a/drivers/net/ldpaa_eth/ldpaa_eth.c
+++ b/drivers/net/ldpaa_eth/ldpaa_eth.c
@@ -413,7 +413,7 @@  static int ldpaa_eth_open(struct eth_device *net_dev, bd_t *bd)
 		if (err) {
 			printf("%s: Could not initialize\n",
 			       priv->phydev->dev->name);
-			goto err_dpamc_bind;
+			goto err_dpmac_bind;
 		}
 	}
 #else
@@ -441,13 +441,13 @@  static int ldpaa_eth_open(struct eth_device *net_dev, bd_t *bd)
 	if (!priv->phydev->link) {
 		printf("%s: No link.\n", priv->phydev->dev->name);
 		err = -1;
-		goto err_dpamc_bind;
+		goto err_dpmac_bind;
 	}
 
 	/* DPMAC binding DPNI */
 	err = ldpaa_dpmac_bind(priv);
 	if (err)
-		goto err_dpamc_bind;
+		goto err_dpmac_bind;
 
 	/* DPNI initialization */
 	err = ldpaa_dpni_setup(priv);
@@ -540,7 +540,7 @@  err_dpni_bind:
 err_dpbp_setup:
 	dpni_close(dflt_mc_io, MC_CMD_NO_FLAGS, dflt_dpni->dpni_handle);
 err_dpni_setup:
-err_dpamc_bind:
+err_dpmac_bind:
 	dpmac_close(dflt_mc_io, MC_CMD_NO_FLAGS, priv->dpmac_handle);
 	dpmac_destroy(dflt_mc_io,
 		      dflt_dprc_handle,