watchdog: at91rm9200: Only warn once about problems in .remove()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 17 Feb 2023 09:53:17 +0000 (10:53 +0100)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Thu, 2 Mar 2023 05:51:35 +0000 (06:51 +0100)
commitcf3be7e82b129ed34f811f116f2b113f6299d449
treedae590e26e509cd43a45c29102c5ed8dfa6bf4da
parentff8ec4ac39ad413b580d611dbf68e1d8a82eba56
watchdog: at91rm9200: Only warn once about problems in .remove()

The single difference between returning 0 and returning an error code in
a platform remove callback is that in the latter case the platform core
emits a warning about the error being ignored.

at91wdt_remove() already emits a warning in the error case, so suppress
the more generic (and less helpful) one by returning 0.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230217095317.1213387-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/at91rm9200_wdt.c