Skip to content

Commit

Permalink
net: dsa: felix: name change for clarity from pcs to mdio_device
Browse files Browse the repository at this point in the history
Simple rename of a variable to make things more logical.

Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Colin Foster authored and David S. Miller committed Jan 2, 2022
1 parent e7026f1 commit 61f0d0c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/net/dsa/ocelot/felix_vsc9959.c
Original file line number Diff line number Diff line change
Expand Up @@ -1089,21 +1089,21 @@ static int vsc9959_mdio_bus_alloc(struct ocelot *ocelot)
for (port = 0; port < felix->info->num_ports; port++) {
struct ocelot_port *ocelot_port = ocelot->ports[port];
struct phylink_pcs *phylink_pcs;
struct mdio_device *pcs;
struct mdio_device *mdio_device;

if (dsa_is_unused_port(felix->ds, port))
continue;

if (ocelot_port->phy_mode == PHY_INTERFACE_MODE_INTERNAL)
continue;

pcs = mdio_device_create(felix->imdio, port);
if (IS_ERR(pcs))
mdio_device = mdio_device_create(felix->imdio, port);
if (IS_ERR(mdio_device))
continue;

phylink_pcs = lynx_pcs_create(pcs);
phylink_pcs = lynx_pcs_create(mdio_device);
if (!phylink_pcs) {
mdio_device_free(pcs);
mdio_device_free(mdio_device);
continue;
}

Expand Down

0 comments on commit 61f0d0c

Please sign in to comment.