kernel: update kernel 4.9 to 4.9.34
[openwrt/staging/dedeckeh.git] / target / linux / generic / patches-4.9 / 702-phy_add_aneg_done_function.patch
index 410cd43067f69287dc9d6105db785c22f22e4853..5f71be60b8b6d7ac4ce826d04ab6e483273366a7 100644 (file)
  
 --- a/drivers/net/phy/phy_device.c
 +++ b/drivers/net/phy/phy_device.c
-@@ -1247,6 +1247,9 @@ int genphy_update_link(struct phy_device
+@@ -1267,6 +1267,9 @@ int genphy_update_link(struct phy_device
  {
        int status;
  
-+      if (phydev->drv->update_link)
++      if (phydev->drv && phydev->drv->update_link)
 +              return phydev->drv->update_link(phydev);
 +
        /* Do a fake read */