From: Paul Cercueil <paul@crapouillou.net> Date: 2021-03-07 13:19:00
When the probe fails or requests to be defered, we must disable the
regulator that was previously enabled.
Fixes: 7994fe55a4a2 ("dm9000: Add regulator and reset support to dm9000")
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
---
drivers/net/ethernet/davicom/dm9000.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
@@ -1449,7 +1449,7 @@ dm9000_probe(struct platform_device *pdev)if(ret){dev_err(dev,"failed to request reset gpio %d: %d\n",reset_gpios,ret);-return-ENODEV;+gotoout_regulator_disable;}/* According to manual PWRST# Low Period Min 1ms */
From: Paul Cercueil <paul@crapouillou.net> Date: 2021-03-07 13:19:00
We must disable the regulator that was enabled in the probe function.
Fixes: 7994fe55a4a2 ("dm9000: Add regulator and reset support to dm9000")
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
---
drivers/net/ethernet/davicom/dm9000.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
From: Paul Cercueil <paul@crapouillou.net> Date: 2021-03-07 13:20:44
The second IRQ line really is optional, so use
platform_get_irq_optional() to obtain it.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
---
drivers/net/ethernet/davicom/dm9000.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Hello:
This series was applied to netdev/net.git (refs/heads/master):
On Sun, 7 Mar 2021 13:17:47 +0000 you wrote:
When the probe fails or requests to be defered, we must disable the
regulator that was previously enabled.
Fixes: 7994fe55a4a2 ("dm9000: Add regulator and reset support to dm9000")
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
---
drivers/net/ethernet/davicom/dm9000.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)