diff options
Diffstat (limited to 'drivers/net/phy/fixed_phy.c')
-rw-r--r-- | drivers/net/phy/fixed_phy.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/phy/fixed_phy.c b/drivers/net/phy/fixed_phy.c index 3ffe46df249e..7c5265fd2b94 100644 --- a/drivers/net/phy/fixed_phy.c +++ b/drivers/net/phy/fixed_phy.c | |||
@@ -216,8 +216,10 @@ static struct gpio_desc *fixed_phy_get_gpiod(struct device_node *np) | |||
216 | if (IS_ERR(gpiod)) { | 216 | if (IS_ERR(gpiod)) { |
217 | if (PTR_ERR(gpiod) == -EPROBE_DEFER) | 217 | if (PTR_ERR(gpiod) == -EPROBE_DEFER) |
218 | return gpiod; | 218 | return gpiod; |
219 | pr_err("error getting GPIO for fixed link %pOF, proceed without\n", | 219 | |
220 | fixed_link_node); | 220 | if (PTR_ERR(gpiod) != -ENOENT) |
221 | pr_err("error getting GPIO for fixed link %pOF, proceed without\n", | ||
222 | fixed_link_node); | ||
221 | gpiod = NULL; | 223 | gpiod = NULL; |
222 | } | 224 | } |
223 | 225 | ||