diff options
author | Philippe Reynes <tremyfr@gmail.com> | 2016-05-16 17:52:36 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-05-17 05:16:32 +0300 |
commit | c1c511a275c9c0a14836c2071d37946df3862c25 (patch) | |
tree | 9f467c611626363480357e88ab2c47ebbdcdd1dd /drivers/net/ethernet/freescale/fs_enet/mac-scc.c | |
parent | 92964c79b357efd980812c4de5c1fd2ec8bb5520 (diff) | |
download | linux-c1c511a275c9c0a14836c2071d37946df3862c25.tar.xz |
net: ethernet: fs-enet: use phydev from struct net_device
The private structure contain a pointer to phydev, but the structure
net_device already contain such pointer. So we can remove the pointer
phydev in the private structure, and update the driver to use the
one contained in struct net_device.
Signed-off-by: Philippe Reynes <tremyfr@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/fs_enet/mac-scc.c')
-rw-r--r-- | drivers/net/ethernet/freescale/fs_enet/mac-scc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/fs_enet/mac-scc.c b/drivers/net/ethernet/freescale/fs_enet/mac-scc.c index 7a184e8816a4..e8b9c33d35b4 100644 --- a/drivers/net/ethernet/freescale/fs_enet/mac-scc.c +++ b/drivers/net/ethernet/freescale/fs_enet/mac-scc.c @@ -352,7 +352,7 @@ static void restart(struct net_device *dev) W16(sccp, scc_psmr, SCC_PSMR_ENCRC | SCC_PSMR_NIB22); /* Set full duplex mode if needed */ - if (fep->phydev->duplex) + if (dev->phydev->duplex) S16(sccp, scc_psmr, SCC_PSMR_LPB | SCC_PSMR_FDE); /* Restore multicast and promiscuous settings */ |