mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-02 20:29:20 +00:00
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>
This commit is contained in:
parent
f4344e0a48
commit
0115dcd178
2 changed files with 53 additions and 64 deletions
|
@ -79,7 +79,6 @@ struct dsa_slave_priv {
|
|||
* The phylib phy_device pointer for the PHY connected
|
||||
* to this port.
|
||||
*/
|
||||
struct phy_device *phy;
|
||||
phy_interface_t phy_interface;
|
||||
int old_link;
|
||||
int old_pause;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue