aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/legacy/gayle.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/legacy/gayle.c')
-rw-r--r--drivers/ide/legacy/gayle.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/ide/legacy/gayle.c b/drivers/ide/legacy/gayle.c
index 705d0b8a3f5d..ec53dc9b483c 100644
--- a/drivers/ide/legacy/gayle.c
+++ b/drivers/ide/legacy/gayle.c
@@ -113,6 +113,7 @@ static int gayle_ack_intr_a1200(ide_hwif_t *hwif)
113void __init gayle_init(void) 113void __init gayle_init(void)
114{ 114{
115 int a4000, i; 115 int a4000, i;
116 u8 idx[4] = { 0xff, 0xff, 0xff, 0xff };
116 117
117 if (!MACH_IS_AMIGA) 118 if (!MACH_IS_AMIGA)
118 return; 119 return;
@@ -183,7 +184,11 @@ found:
183 break; 184 break;
184#endif /* CONFIG_BLK_DEV_IDEDOUBLER */ 185#endif /* CONFIG_BLK_DEV_IDEDOUBLER */
185 } 186 }
187
188 idx[i] = index;
186 } else 189 } else
187 release_mem_region(res_start, res_n); 190 release_mem_region(res_start, res_n);
188 } 191 }
192
193 ide_device_add(idx);
189} 194}