ipq40xx: fix ethernet probe abort on missing phy-reset
authorDavid Bauer <mail@david-bauer.net>
Tue, 22 Oct 2019 22:26:23 +0000 (00:26 +0200)
committerDavid Bauer <mail@david-bauer.net>
Tue, 22 Oct 2019 23:17:28 +0000 (01:17 +0200)
This commit completely fixes the abortion of the ipq40xx ethernet driver
probe in case no phy-reset is defined.

Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/ipq40xx/patches-4.19/700-net-add-qualcomm-mdio.patch

index a37c1e36f872c918c8b389155b2e5ba9c6a0eaf3..20d0faa472512580e54ed6cc788f379d528609eb 100644 (file)
@@ -186,7 +186,7 @@ index 000000000..88fe5dc2b
 +      ret = of_get_named_gpio(mdio_node, "phy-reset-gpio", 0);
 +      if (ret < 0) {
 +              dev_err(&pdev->dev, "Could not find phy-reset-gpio\n");
-+              return ret;
++              return 0;
 +      }
 +
 +      phy_reset_gpio_number = ret;