ramips: refresh at803x patch
authorDavid Bauer <mail@david-bauer.net>
Sun, 13 Jun 2021 23:33:03 +0000 (01:33 +0200)
committerDavid Bauer <mail@david-bauer.net>
Sun, 13 Jun 2021 23:36:30 +0000 (01:36 +0200)
This patch failed to apply, breaking builds for the ramips target.

Fixes commit c44cefceb3ad ("generic: kernel 5.4: fix probe error for AR803x PHYs")

Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/ramips/patches-5.4/991-at803x.patch

index 6e178b80cee0e4ee095b5a9b0717018dd548f130..4de3118547942d71a3a547bd8ec24278c48b0988 100644 (file)
@@ -105,7 +105,7 @@ Signed-off-by: RenĂ© van Dorst <opensource@vdorst.com>
  {
        struct device *dev = &phydev->mdio.dev;
        struct at803x_priv *priv;
-       int ret;
+       int ret = 0;
  
 +      if (at803x_mode(phydev) == AT803X_MODE_FIBER) {
 +              ret = phy_sfp_probe(phydev, &at803x_sfp_ops);