m68k: Return -ENODEV if no device is found
According to the tests in do_initcalls(), the proper error code in case no device is found is -ENODEV, not -ENXIO or -EIO. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
038eddd9ac
commit
e945b568e2
@@ -220,7 +220,7 @@ static int __init atakbd_init(void)
|
||||
int i, error;
|
||||
|
||||
if (!MACH_IS_ATARI || !ATARIHW_PRESENT(ST_MFP))
|
||||
return -EIO;
|
||||
return -ENODEV;
|
||||
|
||||
// need to init core driver if not already done so
|
||||
if (atari_keyb_init())
|
||||
|
Reference in New Issue
Block a user