Commit 82cc4537 authored by Colin Foster's avatar Colin Foster Committed by David S. Miller

net: ethernet: enetc: name change for clarity from pcs to mdio_device

A simple variable update from "pcs" to "mdio_device" for the mdio device
will make things a little cleaner.
Signed-off-by: default avatarColin Foster <colin.foster@in-advantage.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2c1415e6
...@@ -830,7 +830,7 @@ static int enetc_imdio_create(struct enetc_pf *pf) ...@@ -830,7 +830,7 @@ static int enetc_imdio_create(struct enetc_pf *pf)
struct device *dev = &pf->si->pdev->dev; struct device *dev = &pf->si->pdev->dev;
struct enetc_mdio_priv *mdio_priv; struct enetc_mdio_priv *mdio_priv;
struct phylink_pcs *phylink_pcs; struct phylink_pcs *phylink_pcs;
struct mdio_device *pcs; struct mdio_device *mdio_device;
struct mii_bus *bus; struct mii_bus *bus;
int err; int err;
...@@ -854,16 +854,16 @@ static int enetc_imdio_create(struct enetc_pf *pf) ...@@ -854,16 +854,16 @@ static int enetc_imdio_create(struct enetc_pf *pf)
goto free_mdio_bus; goto free_mdio_bus;
} }
pcs = mdio_device_create(bus, 0); mdio_device = mdio_device_create(bus, 0);
if (IS_ERR(pcs)) { if (IS_ERR(mdio_device)) {
err = PTR_ERR(pcs); err = PTR_ERR(mdio_device);
dev_err(dev, "cannot create pcs (%d)\n", err); dev_err(dev, "cannot create mdio device (%d)\n", err);
goto unregister_mdiobus; goto unregister_mdiobus;
} }
phylink_pcs = lynx_pcs_create(pcs); phylink_pcs = lynx_pcs_create(mdio_device);
if (!phylink_pcs) { if (!phylink_pcs) {
mdio_device_free(pcs); mdio_device_free(mdio_device);
err = -ENOMEM; err = -ENOMEM;
dev_err(dev, "cannot create lynx pcs (%d)\n", err); dev_err(dev, "cannot create lynx pcs (%d)\n", err);
goto unregister_mdiobus; goto unregister_mdiobus;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment