]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: altera_tse: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Sat, 18 Jun 2016 14:37:20 +0000 (16:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jun 2016 20:22:41 +0000 (16:22 -0400)
commitaf91ab4a1f2e8d7fa80018d75ac7d0e4a8d02052
tree188e638db93a239409dd2cd550ff6212f417912c
parent38ca3af86ae26766de7c187ccf8325e71f8f86fc
net: ethernet: altera_tse: 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/altera/altera_tse.h
drivers/net/ethernet/altera/altera_tse_ethtool.c
drivers/net/ethernet/altera/altera_tse_main.c