]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: r6040: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Sat, 25 Jun 2016 19:09:01 +0000 (21:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jun 2016 13:12:35 +0000 (09:12 -0400)
commit1864c2150896aa164c2d7c1c5f6f688eab264f63
tree6fc38dcc73a2c611ccdbc2735adc7913f45fbd88
parent8df746cf600e2533827a2ffbdb390e4dc0975710
net: ethernet: r6040: 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/rdc/r6040.c