[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181125211907.9895-4-otavio@ossystems.com.br>
Date: Sun, 25 Nov 2018 19:18:58 -0200
From: Otavio Salvador <otavio@...ystems.com.br>
To: linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-rockchip@...ts.infradead.org
Cc: Otavio Salvador <otavio@...ystems.com.br>,
Fabio Berton <fabio.berton@...ystems.com.br>,
Jose Abreu <joabreu@...opsys.com>,
Giuseppe Cavallaro <peppe.cavallaro@...com>,
netdev@...r.kernel.org, Alexandre Torgue <alexandre.torgue@...com>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
linux-stm32@...md-mailman.stormreply.com,
"David S. Miller" <davem@...emloft.net>
Subject: [PATCH 04/13] net: stmmac: dwmac-rk: Do not print redundant error message
rk_gmac_setup() already prints a message saying that the PHY regulator
is not found, so we should not print it again.
Signed-off-by: Otavio Salvador <otavio@...ystems.com.br>
Signed-off-by: Fabio Berton <fabio.berton@...ystems.com.br>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c
index 73855622445b..c895a9a6939a 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c
@@ -1203,10 +1203,8 @@ static int phy_power_on(struct rk_priv_data *bsp_priv, bool enable)
int ret;
struct device *dev = &bsp_priv->pdev->dev;
- if (!ldo) {
- dev_err(dev, "no regulator found\n");
+ if (!ldo)
return 0;
- }
if (enable) {
ret = regulator_enable(ldo);
--
2.19.1
Powered by blists - more mailing lists