]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: smsc: smsc911x: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Sat, 2 Jul 2016 23:14:20 +0000 (01:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jul 2016 22:59:51 +0000 (15:59 -0700)
commitcd7818e7eec095a7e236afdfc92461a93dec7418
treea6bb56d53aa17958917a2028d603fbf565bf6b55
parent6f1c904826502e2b48a386ba5af9e5b4f42bafba
net: ethernet: smsc: smsc911x: 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
phy 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/smsc/smsc911x.c