Message ID | 20190518212801.31010-37-wsa+renesas@sang-engineering.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | watchdog: move 'registration failed' messages into core | expand |
On 18/05/2019 23:27:51+0200, Wolfram Sang wrote: > The core will print out details now. > > Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com> > --- > drivers/watchdog/sama5d4_wdt.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/watchdog/sama5d4_wdt.c b/drivers/watchdog/sama5d4_wdt.c > index 111695223aae..5adcb047cb94 100644 > --- a/drivers/watchdog/sama5d4_wdt.c > +++ b/drivers/watchdog/sama5d4_wdt.c > @@ -260,10 +260,8 @@ static int sama5d4_wdt_probe(struct platform_device *pdev) > > watchdog_stop_on_unregister(wdd); > ret = devm_watchdog_register_device(dev, wdd); > - if (ret) { > - dev_err(dev, "failed to register watchdog device\n"); > + if (ret) > return ret; > - } > > platform_set_drvdata(pdev, wdt); > > -- > 2.19.1 >
diff --git a/drivers/watchdog/sama5d4_wdt.c b/drivers/watchdog/sama5d4_wdt.c index 111695223aae..5adcb047cb94 100644 --- a/drivers/watchdog/sama5d4_wdt.c +++ b/drivers/watchdog/sama5d4_wdt.c @@ -260,10 +260,8 @@ static int sama5d4_wdt_probe(struct platform_device *pdev) watchdog_stop_on_unregister(wdd); ret = devm_watchdog_register_device(dev, wdd); - if (ret) { - dev_err(dev, "failed to register watchdog device\n"); + if (ret) return ret; - } platform_set_drvdata(pdev, wdt);
The core will print out details now. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> --- drivers/watchdog/sama5d4_wdt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)