dragon-nx32: Only init IDE if we have a known IDE cartridge ROM
authorTormod Volden <debian.tormod@gmail.com>
Sat, 11 Aug 2018 09:18:37 +0000 (11:18 +0200)
committerAlan Cox <alan@linux.intel.com>
Mon, 13 Aug 2018 12:24:19 +0000 (13:24 +0100)
Same as we do for SCSI controllers.

Avoids the long detection timeout when there is no IDE controller
present.

Since we are not using the cartridge ROM, it would be strictly
possible to use a controller without ROM but we won't support
that for now. The same goes for unknown ROMs, of course.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Kernel/platform-dragon-nx32/devices.c

index 0da2832..c5f2467 100644 (file)
@@ -81,8 +81,8 @@ void device_init(void)
     if (i >= 0) {
       ide_base = cartaddr[i] ? cartaddr[i]: ide_base;
       ide_slot = i;
+      devide_init();
     }
-    devide_init();
 #endif
 #ifdef CONFIG_SCSI
     i = cart_find(CART_TC3);