]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf21931ddd505e5fecd236d538d7a87ffe2547b66
tree62dd6b37928b0b3dd05e4b5ab78cca532851530d
parentf749ad2ab599fae691a11a53144e2f42cdd4f404
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