aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2019-10-21 23:57:41 +0200
committerJohn Crispin <john@phrozen.org>2019-10-22 00:00:36 +0200
commit8285af1928e445c6691831ec5657073cf4cd6aed (patch)
tree866a36d1879962914490fec744be42c97d28ba21 /target
parented67b137c748365d7a3be886a2f5309c3bc44c48 (diff)
downloadupstream-8285af1928e445c6691831ec5657073cf4cd6aed.tar.gz
upstream-8285af1928e445c6691831ec5657073cf4cd6aed.tar.bz2
upstream-8285af1928e445c6691831ec5657073cf4cd6aed.zip
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>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ipq40xx/patches-4.19/700-net-add-qualcomm-mdio.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ipq40xx/patches-4.19/700-net-add-qualcomm-mdio.patch b/target/linux/ipq40xx/patches-4.19/700-net-add-qualcomm-mdio.patch
index 4be25186e6..a37c1e36f8 100644
--- a/target/linux/ipq40xx/patches-4.19/700-net-add-qualcomm-mdio.patch
+++ b/target/linux/ipq40xx/patches-4.19/700-net-add-qualcomm-mdio.patch
@@ -180,7 +180,7 @@ index 000000000..88fe5dc2b
+ mdio_node = of_find_node_by_name(NULL, "mdio");
+ if (!mdio_node) {
+ 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);