diff options
Diffstat (limited to 'drivers/ide/cris/ide-cris.c')
-rw-r--r-- | drivers/ide/cris/ide-cris.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ide/cris/ide-cris.c b/drivers/ide/cris/ide-cris.c index dcebc0299f5e..7e33e2b42e92 100644 --- a/drivers/ide/cris/ide-cris.c +++ b/drivers/ide/cris/ide-cris.c | |||
@@ -777,9 +777,11 @@ init_e100_ide (void) | |||
777 | ide_offsets, | 777 | ide_offsets, |
778 | 0, 0, cris_ide_ack_intr, | 778 | 0, 0, cris_ide_ack_intr, |
779 | ide_default_irq(0)); | 779 | ide_default_irq(0)); |
780 | ide_register_hw(&hw, NULL, 1, &hwif); | 780 | hwif = ide_find_port(hw.io_ports[IDE_DATA_OFFSET]); |
781 | if (hwif == NULL) | 781 | if (hwif == NULL) |
782 | continue; | 782 | continue; |
783 | ide_init_port_data(hwif, hwif->index); | ||
784 | ide_init_port_hw(hwif, &hw); | ||
783 | hwif->mmio = 1; | 785 | hwif->mmio = 1; |
784 | hwif->chipset = ide_etrax100; | 786 | hwif->chipset = ide_etrax100; |
785 | hwif->set_pio_mode = &cris_set_pio_mode; | 787 | hwif->set_pio_mode = &cris_set_pio_mode; |