]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: dnet: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Thu, 23 Jun 2016 21:48:58 +0000 (23:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jun 2016 09:10:26 +0000 (05:10 -0400)
commit4a57a91182cef6f0a5251ae62d4f608bea3578f0
treefd4361ddc0c5c41ac2b674c43d3931f99bd62343
parent0c0854858a9aba70d180a9e99212fa541a2c00ac
net: ethernet: dnet: 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/dnet.c
drivers/net/ethernet/dnet.h