diff options
Diffstat (limited to 'drivers/ide/legacy/buddha.c')
-rw-r--r-- | drivers/ide/legacy/buddha.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/ide/legacy/buddha.c b/drivers/ide/legacy/buddha.c index 4a0be251a05f..8b9cb39c961e 100644 --- a/drivers/ide/legacy/buddha.c +++ b/drivers/ide/legacy/buddha.c | |||
@@ -147,7 +147,7 @@ void __init buddha_init(void) | |||
147 | { | 147 | { |
148 | hw_regs_t hw; | 148 | hw_regs_t hw; |
149 | ide_hwif_t *hwif; | 149 | ide_hwif_t *hwif; |
150 | int i, index; | 150 | int i; |
151 | 151 | ||
152 | struct zorro_dev *z = NULL; | 152 | struct zorro_dev *z = NULL; |
153 | u_long buddha_board = 0; | 153 | u_long buddha_board = 0; |
@@ -213,8 +213,13 @@ fail_base2: | |||
213 | IRQ_AMIGA_PORTS); | 213 | IRQ_AMIGA_PORTS); |
214 | } | 214 | } |
215 | 215 | ||
216 | index = ide_register_hw(&hw, NULL, 1, &hwif); | 216 | hwif = ide_find_port(hw.io_ports[IDE_DATA_OFFSET]); |
217 | if (index != -1) { | 217 | if (hwif) { |
218 | u8 index = hwif->index; | ||
219 | |||
220 | ide_init_port_data(hwif, index); | ||
221 | ide_init_port_hw(hwif, &hw); | ||
222 | |||
218 | hwif->mmio = 1; | 223 | hwif->mmio = 1; |
219 | printk("ide%d: ", index); | 224 | printk("ide%d: ", index); |
220 | switch(type) { | 225 | switch(type) { |