diff options
author | Chuanhong Guo <gch981213@gmail.com> | 2020-04-13 11:49:16 +0800 |
---|---|---|
committer | Chuanhong Guo <gch981213@gmail.com> | 2020-04-13 11:49:16 +0800 |
commit | 77b99ea3c658b2bc60f80e13b3ed32afc4c31ad7 (patch) | |
tree | b4826cf2be5da6ff0c63b40bd81185ffb19728ea /target | |
parent | 4d06229242f27baa5566cc788f6987b470505d53 (diff) | |
download | upstream-77b99ea3c658b2bc60f80e13b3ed32afc4c31ad7.tar.gz upstream-77b99ea3c658b2bc60f80e13b3ed32afc4c31ad7.tar.bz2 upstream-77b99ea3c658b2bc60f80e13b3ed32afc4c31ad7.zip |
ramips: fix whitespace in 990_NET-no-auto-carrier-support.patch
Fixes: 6fcba5eec3 ("ramips: port 0034-NET-multi-phy-support.patch to 5.4")
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/ramips/patches-5.4/990-NET-no-auto-carrier-off-support.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/ramips/patches-5.4/990-NET-no-auto-carrier-off-support.patch b/target/linux/ramips/patches-5.4/990-NET-no-auto-carrier-off-support.patch index c15be64377..a31d1ac3a6 100644 --- a/target/linux/ramips/patches-5.4/990-NET-no-auto-carrier-off-support.patch +++ b/target/linux/ramips/patches-5.4/990-NET-no-auto-carrier-off-support.patch @@ -16,10 +16,10 @@ Signed-off-by: John Crispin <blogic@openwrt.org> } else if (!phydev->link && phydev->state != PHY_NOLINK) { phydev->state = PHY_NOLINK; - phy_link_down(phydev, true); -+ if (!phydev->no_auto_carrier_off) -+ phy_link_down(phydev, true); -+ else -+ phy_link_down(phydev, false); ++ if (!phydev->no_auto_carrier_off) ++ phy_link_down(phydev, true); ++ else ++ phy_link_down(phydev, false); } return 0; |