]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: use slave device phydev
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Tue, 26 Sep 2017 21:15:32 +0000 (17:15 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Sep 2017 03:06:34 +0000 (20:06 -0700)
commit7ab1ddd685d2317f40c4a02eb6519125924f1a23
tree98558dc7b4449c3829a9c8456f2ce01e43d025e5
parent7e9d524bb1fc145a7751eae3a2ec95602307d47b
net: dsa: use slave device phydev

There is no need to store a phy_device in dsa_slave_priv since
net_device already provides one. Simply s/p->phy/dev->phydev/.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa_priv.h
net/dsa/slave.c