You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07: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 <geert@linux-m68k.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
eb98630ba0
commit
fd5b462f0b
@@ -332,7 +332,7 @@ z2_init(void)
|
||||
int ret;
|
||||
|
||||
if (!MACH_IS_AMIGA)
|
||||
return -ENXIO;
|
||||
return -ENODEV;
|
||||
|
||||
ret = -EBUSY;
|
||||
if (register_blkdev(Z2RAM_MAJOR, DEVICE_NAME))
|
||||
|
||||
Reference in New Issue
Block a user