]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit715a022703e2d2e2e8e607fcd82f483bf8494202
tree59907357b9dfa81189e762a4fca2a54b7d178762
parent90789322c3bb9ece244f1fc6bf62667eae9814f2
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