]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: mvpp2: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Mon, 27 Jun 2016 22:08:11 +0000 (00:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jun 2016 10:03:38 +0000 (06:03 -0400)
commit71951f17600658f47e448f1f15d00dc468157e64
tree14c18d7ccd0c9bd0edb816ce6b378ae776cc94c0
parent8d1a9be079931083aebc41667cf97f7c58dafbaf
net: ethernet: mvpp2: 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/marvell/mvpp2.c