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>
if (!MACH_IS_ATARI)
/* Amiga, Mac, ... don't have Atari-compatible floppy :-) */
if (!MACH_IS_ATARI)
/* Amiga, Mac, ... don't have Atari-compatible floppy :-) */
if (MACH_IS_HADES)
/* Hades doesn't have Atari-compatible floppy */
if (MACH_IS_HADES)
/* Hades doesn't have Atari-compatible floppy */
if (register_blkdev(FLOPPY_MAJOR,"fd"))
return -EBUSY;
if (register_blkdev(FLOPPY_MAJOR,"fd"))
return -EBUSY;
/* First test whether the driver should init at all */
if (!CHECK_DRIVER_INIT())
/* First test whether the driver should init at all */
if (!CHECK_DRIVER_INIT())
ret = misc_register(&nvram_dev);
if (ret) {
ret = misc_register(&nvram_dev);
if (ret) {
int i, error;
if (!MACH_IS_ATARI || !ATARIHW_PRESENT(ST_MFP))
int i, error;
if (!MACH_IS_ATARI || !ATARIHW_PRESENT(ST_MFP))
// need to init core driver if not already done so
if (atari_keyb_init())
// need to init core driver if not already done so
if (atari_keyb_init())
printk("atafb_init: start\n");
if (!MACH_IS_ATARI)
printk("atafb_init: start\n");
if (!MACH_IS_ATARI)