ar71xx: fix kernel Oops in at803x_link_change_notify
[openwrt/staging/yousong.git] / target / linux / ar71xx / patches-3.18 / 425-net-phy-at803x-allow-to-configure-via-pdata.patch
index 34b9bc06db5eb04c10da5b987f0d49ac24659d34..0d021ac7bd8a9b81eb6fcb609d78f1f9ab2ad2b9 100644 (file)
                        priv->phy_reset = false;
                }
        }
-+      if (pdata->fixup_rgmii_tx_delay &&
++      if (pdata && pdata->fixup_rgmii_tx_delay &&
 +          phydev->speed != priv->prev_speed) {
 +              switch (phydev->speed) {
 +              case SPEED_10: