]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ll_temac: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Wed, 13 Jul 2016 23:48:51 +0000 (01:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jul 2016 00:42:30 +0000 (17:42 -0700)
commit834df548c160c7d0fbbb26d495d105efeb490901
treec80fb98c6e8f16e1fd55321de7291b10d5c5c497
parentbfc0d3e6e2643ea88e4a838e4adbe4b6f018cd40
net: ethernet: ll_temac: 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/xilinx/ll_temac.h
drivers/net/ethernet/xilinx/ll_temac_main.c