]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: xilinx: axienet: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Thu, 14 Jul 2016 17:45:57 +0000 (19:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jul 2016 23:41:34 +0000 (16:41 -0700)
commit2e4d1cfbe109f0493f62ad572cb181f41d9064da
tree5ad1ebfb419e68f9b47ff1f0f44febecaf59fdb9
parentd04bc4fedc3847c93fe7da064072deb0c37615bb
net: ethernet: xilinx: axienet: 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
phy 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/xilinx/xilinx_axienet.h
drivers/net/ethernet/xilinx/xilinx_axienet_main.c