net: ethernet: macb: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Tue, 21 Jun 2016 22:32:35 +0000 (00:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 Jun 2016 15:57:33 +0000 (11:57 -0400)
commit0a91281e5190aa6bc42fa86ba88758add20087fa
tree62dd6b37928b0b3dd05e4b5ab78cca532851530d
parent7d904c7bcd51f72579c0c3134a50896c5a3efb9f
net: ethernet: macb: 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/cadence/macb.c
drivers/net/ethernet/cadence/macb.h