]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: bcmsysport: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Sun, 19 Jun 2016 18:39:08 +0000 (20:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Jun 2016 23:15:55 +0000 (16:15 -0700)
commit3eeafc7df4e6ab2c68068334fef5a19c80acc418
tree59907357b9dfa81189e762a4fca2a54b7d178762
parent574d113a2a5013168e67bcbbbbce559e6942aacf
net: ethernet: bcmsysport: 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>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcmsysport.c
drivers/net/ethernet/broadcom/bcmsysport.h