]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: sun4i-emac: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Sat, 18 Jun 2016 13:15:39 +0000 (15:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jun 2016 20:22:41 +0000 (16:22 -0400)
commit93eb6470101a33761411ca4710c67d0eff3f2937
tree7d1de23820876439d96bb98d880f6918c5a20393
parent52aaf7b44d7bab07a88322ca3788b38369fd0a20
net: ethernet: sun4i-emac: 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/allwinner/sun4i-emac.c