summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2015-08-12 10:15:57 +0200
committerWim Van Sebroeck <wim@iguana.be>2015-09-09 21:37:51 +0200
commit72cd501e6a9b578cf99ae062477d9c7a938a3238 (patch)
treecfeb6f25f861b0c8e162548d091f1c69e6ece902 /drivers/watchdog
parent7997ebad4d747ff5561cb5ec0c7423e0d4e628d5 (diff)
downloadtalos-obmc-linux-72cd501e6a9b578cf99ae062477d9c7a938a3238.tar.gz
talos-obmc-linux-72cd501e6a9b578cf99ae062477d9c7a938a3238.zip
watchdog: mpc8xxx: use better error code when watchdog cannot be enabled
checkpatch warns about ENOSYS, telling "ENOSYS means 'invalid syscall nr' and nothing else". So use ENODEV instead. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/mpc8xxx_wdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/mpc8xxx_wdt.c b/drivers/watchdog/mpc8xxx_wdt.c
index 0b69797d3417..5f2273aac37d 100644
--- a/drivers/watchdog/mpc8xxx_wdt.c
+++ b/drivers/watchdog/mpc8xxx_wdt.c
@@ -170,7 +170,7 @@ static int mpc8xxx_wdt_probe(struct platform_device *ofdev)
enabled = in_be32(&ddata->base->swcrr) & SWCRR_SWEN;
if (!enabled && wdt_type->hw_enabled) {
pr_info("could not be enabled in software\n");
- return -ENOSYS;
+ return -ENODEV;
}
spin_lock_init(&ddata->lock);
OpenPOWER on IntegriCloud