]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: sxgbe: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Sat, 25 Jun 2016 20:05:26 +0000 (22:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jun 2016 13:12:35 +0000 (09:12 -0400)
commit4f938645cf0fefbc7a7955a3535e7e2fa30ccefd
treecb2da7ea3d872db9a6108c5eb0ac72f19deeae57
parentb0d2c3baa4081b1c5329af6b2bc2352d47ae8e45
net: ethernet: sxgbe: 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/samsung/sxgbe/sxgbe_common.h
drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c
drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c