ipq40xx: fix ethernet probe abort on missing phy-reset

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>
This commit is contained in:
David Bauer 2019-10-23 00:26:23 +02:00
parent d263883796
commit 7be79a3ab2

View 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;