diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2008-07-17 21:16:10 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-20 17:24:38 -0700 |
commit | e945b568e28b42de893ef24989372f0219501d32 (patch) | |
tree | b14af0806136067685a96832abcf05b46f99980b /drivers/block/ataflop.c | |
parent | 038eddd9acf34e8202b31af3ee9eb48179114323 (diff) | |
download | linux-e945b568e28b42de893ef24989372f0219501d32.tar.gz linux-e945b568e28b42de893ef24989372f0219501d32.tar.bz2 linux-e945b568e28b42de893ef24989372f0219501d32.zip |
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>
Diffstat (limited to 'drivers/block/ataflop.c')
-rw-r--r-- | drivers/block/ataflop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/ataflop.c b/drivers/block/ataflop.c index 424995073c6b..49f274197b16 100644 --- a/drivers/block/ataflop.c +++ b/drivers/block/ataflop.c @@ -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; |