watchdog: mpc8xxx: use better error code when watchdog cannot be enabled
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 12 Aug 2015 08:15:57 +0000 (10:15 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 9 Sep 2015 19:37:51 +0000 (21:37 +0200)
commit72cd501e6a9b578cf99ae062477d9c7a938a3238
treecfeb6f25f861b0c8e162548d091f1c69e6ece902
parent7997ebad4d747ff5561cb5ec0c7423e0d4e628d5
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>
drivers/watchdog/mpc8xxx_wdt.c