]> 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)
commitdde3e891cc3520a6eb88d13caf9850ef9ef3e920
tree59907357b9dfa81189e762a4fca2a54b7d178762
parentbff9f4c6770cfd171862c9e67bb44d5bbcd57e59
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