]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: dwc_eth_qos: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Sat, 25 Jun 2016 21:05:15 +0000 (23:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jun 2016 13:12:36 +0000 (09:12 -0400)
commit1a9f94d5e8e522e0b1bae5d80a01ce4814109fdb
tree4858190ad2a2d2b65271f4ca6d17fe55deb1d22d
parentda7a690054263d97891ff7a0752064de48d0b206
net: ethernet: dwc_eth_qos: 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/synopsys/dwc_eth_qos.c