mirror of https://github.com/hak5/openwrt.git
ipq40xx: fix optional gpio-reset
If a gpio reset pin was not defined we should not bog out. Signed-off-by: John Crispin <john@phrozen.org>master
parent
ed67b137c7
commit
8285af1928
|
@ -180,7 +180,7 @@ index 000000000..88fe5dc2b
|
||||||
+ mdio_node = of_find_node_by_name(NULL, "mdio");
|
+ mdio_node = of_find_node_by_name(NULL, "mdio");
|
||||||
+ if (!mdio_node) {
|
+ if (!mdio_node) {
|
||||||
+ dev_err(&pdev->dev, "Could not find mdio node\n");
|
+ dev_err(&pdev->dev, "Could not find mdio node\n");
|
||||||
+ return -ENOENT;
|
+ return 0;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ ret = of_get_named_gpio(mdio_node, "phy-reset-gpio", 0);
|
+ ret = of_get_named_gpio(mdio_node, "phy-reset-gpio", 0);
|
||||||
|
|
Loading…
Reference in New Issue