Skip to content

Commit eca485d

Browse files
DenisKirjanovdavem330
authored andcommitted
drivers: net: convert to boolean for the mac_managed_pm flag
Signed-off-by: Dennis Kirjanov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8fc4dea commit eca485d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

drivers/net/ethernet/freescale/fec_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2169,7 +2169,7 @@ static int fec_enet_mii_probe(struct net_device *ndev)
21692169
fep->link = 0;
21702170
fep->full_duplex = 0;
21712171

2172-
phy_dev->mac_managed_pm = 1;
2172+
phy_dev->mac_managed_pm = true;
21732173

21742174
phy_attached_info(phy_dev);
21752175

drivers/net/ethernet/realtek/r8169_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5018,7 +5018,7 @@ static int r8169_mdio_register(struct rtl8169_private *tp)
50185018
return -EUNATCH;
50195019
}
50205020

5021-
tp->phydev->mac_managed_pm = 1;
5021+
tp->phydev->mac_managed_pm = true;
50225022

50235023
phy_support_asym_pause(tp->phydev);
50245024

drivers/net/usb/asix_devices.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ static int ax88772_init_phy(struct usbnet *dev)
700700
}
701701

702702
phy_suspend(priv->phydev);
703-
priv->phydev->mac_managed_pm = 1;
703+
priv->phydev->mac_managed_pm = true;
704704

705705
phy_attached_info(priv->phydev);
706706

@@ -720,7 +720,7 @@ static int ax88772_init_phy(struct usbnet *dev)
720720
return -ENODEV;
721721
}
722722

723-
priv->phydev_int->mac_managed_pm = 1;
723+
priv->phydev_int->mac_managed_pm = true;
724724
phy_suspend(priv->phydev_int);
725725

726726
return 0;

0 commit comments

Comments
 (0)