mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-24 11:25:43 +00:00
drivers: net: convert to boolean for the mac_managed_pm flag
[ Upstream commiteca485d221
] Signed-off-by: Dennis Kirjanov <dkirjanov@suse.de> Signed-off-by: David S. Miller <davem@davemloft.net> Stable-dep-of:cbc17e7802
("net: fec: Set mac_managed_pm during probe") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
0985fbfbcb
commit
498cc233c4
3 changed files with 4 additions and 4 deletions
|
@ -2132,7 +2132,7 @@ static int fec_enet_mii_probe(struct net_device *ndev)
|
|||
fep->link = 0;
|
||||
fep->full_duplex = 0;
|
||||
|
||||
phy_dev->mac_managed_pm = 1;
|
||||
phy_dev->mac_managed_pm = true;
|
||||
|
||||
phy_attached_info(phy_dev);
|
||||
|
||||
|
|
|
@ -5177,7 +5177,7 @@ static int r8169_mdio_register(struct rtl8169_private *tp)
|
|||
return -EUNATCH;
|
||||
}
|
||||
|
||||
tp->phydev->mac_managed_pm = 1;
|
||||
tp->phydev->mac_managed_pm = true;
|
||||
|
||||
phy_support_asym_pause(tp->phydev);
|
||||
|
||||
|
|
|
@ -694,7 +694,7 @@ static int ax88772_init_phy(struct usbnet *dev)
|
|||
}
|
||||
|
||||
phy_suspend(priv->phydev);
|
||||
priv->phydev->mac_managed_pm = 1;
|
||||
priv->phydev->mac_managed_pm = true;
|
||||
|
||||
phy_attached_info(priv->phydev);
|
||||
|
||||
|
@ -711,7 +711,7 @@ static int ax88772_init_phy(struct usbnet *dev)
|
|||
return -ENODEV;
|
||||
}
|
||||
|
||||
priv->phydev_int->mac_managed_pm = 1;
|
||||
priv->phydev_int->mac_managed_pm = true;
|
||||
phy_suspend(priv->phydev_int);
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue