mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
This commit is contained in:
parent
7997ebad4d
commit
72cd501e6a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue