]> git.karo-electronics.de Git - linux-beck.git/commit
net: ethernet: arc: emac: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Sat, 2 Jul 2016 18:06:51 +0000 (20:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jul 2016 22:59:52 +0000 (15:59 -0700)
commit01dea536dc4e8eccd0d7741ec0e3dacd3060055c
treecee00777197cbb801ea544a2ff9043c8b5a2f80d
parentfa018484cf5ea67678143c4570b63154fa819682
net: ethernet: arc: emac: 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/arc/emac.h
drivers/net/ethernet/arc/emac_main.c