]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: ethernet: fs-enet: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Mon, 16 May 2016 14:52:36 +0000 (16:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 May 2016 02:16:32 +0000 (22:16 -0400)
commitc1c511a275c9c0a14836c2071d37946df3862c25
tree9f467c611626363480357e88ab2c47ebbdcdd1dd
parent92964c79b357efd980812c4de5c1fd2ec8bb5520
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>
drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
drivers/net/ethernet/freescale/fs_enet/fs_enet.h
drivers/net/ethernet/freescale/fs_enet/mac-fcc.c
drivers/net/ethernet/freescale/fs_enet/mac-fec.c
drivers/net/ethernet/freescale/fs_enet/mac-scc.c