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:
Geert Uytterhoeven
2008-07-17 21:16:10 +02:00
committed by Linus Torvalds
parent 038eddd9ac
commit e945b568e2
4 changed files with 5 additions and 5 deletions

View File

@@ -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())