kernel: update 4.1 to 4.1.10
[openwrt/openwrt.git] / target / linux / ipq806x / patches-4.1 / 701-stmmac-add-phy-handle-support-to-the-platform-layer.patch
index 3711e1282b40d4facc3fefc395c96e64a0647d52..5c29887248304da4d2aa3e51b721448347335859 100644 (file)
@@ -63,7 +63,7 @@ Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
 +                                   interface);
 +      }
  
-       if (IS_ERR(phydev)) {
+       if (IS_ERR_OR_NULL(phydev)) {
                pr_err("%s: Could not attach to PHY\n", dev->name);
 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
 +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c