From: Tormod Volden Date: Sat, 11 Aug 2018 09:18:37 +0000 (+0200) Subject: dragon-nx32: Only init IDE if we have a known IDE cartridge ROM X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=23348e5a7858f7335526ee3a21b0e30b9f6ae30a;p=FUZIX.git dragon-nx32: Only init IDE if we have a known IDE cartridge ROM 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 --- diff --git a/Kernel/platform-dragon-nx32/devices.c b/Kernel/platform-dragon-nx32/devices.c index 0da2832a..c5f24672 100644 --- a/Kernel/platform-dragon-nx32/devices.c +++ b/Kernel/platform-dragon-nx32/devices.c @@ -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);