mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
038eddd9ac
commit
e945b568e2
4 changed files with 5 additions and 5 deletions
|
|
@ -1880,11 +1880,11 @@ static int __init atari_floppy_init (void)
|
|||
|
||||
if (!MACH_IS_ATARI)
|
||||
/* Amiga, Mac, ... don't have Atari-compatible floppy :-) */
|
||||
return -ENXIO;
|
||||
return -ENODEV;
|
||||
|
||||
if (MACH_IS_HADES)
|
||||
/* Hades doesn't have Atari-compatible floppy */
|
||||
return -ENXIO;
|
||||
return -ENODEV;
|
||||
|
||||
if (register_blkdev(FLOPPY_MAJOR,"fd"))
|
||||
return -EBUSY;
|
||||
|
|
|
|||
Loading…
Reference in a new issue