From 23348e5a7858f7335526ee3a21b0e30b9f6ae30a Mon Sep 17 00:00:00 2001 From: Tormod Volden Date: Sat, 11 Aug 2018 11:18:37 +0200 Subject: [PATCH] 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 --- Kernel/platform-dragon-nx32/devices.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.34.1