aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/arm/bast-ide.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/arm/bast-ide.c')
-rw-r--r--drivers/ide/arm/bast-ide.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ide/arm/bast-ide.c b/drivers/ide/arm/bast-ide.c
index 161d30c8481e..ec46c44b061c 100644
--- a/drivers/ide/arm/bast-ide.c
+++ b/drivers/ide/arm/bast-ide.c
@@ -41,15 +41,15 @@ static int __init bastide_register(unsigned int base, unsigned int aux, int irq)
41 hw.io_ports[IDE_CONTROL_OFFSET] = aux + (6 * 0x20); 41 hw.io_ports[IDE_CONTROL_OFFSET] = aux + (6 * 0x20);
42 hw.irq = irq; 42 hw.irq = irq;
43 43
44 hwif = ide_deprecated_find_port(hw.io_ports[IDE_DATA_OFFSET]); 44 hwif = ide_find_port(hw.io_ports[IDE_DATA_OFFSET]);
45 if (hwif == NULL) 45 if (hwif == NULL)
46 goto out; 46 goto out;
47 47
48 i = hwif->index; 48 i = hwif->index;
49 49
50 if (hwif->present) 50 if (hwif->present)
51 ide_unregister(i, 0, 0); 51 ide_unregister(i);
52 else if (!hwif->hold) 52 else
53 ide_init_port_data(hwif, i); 53 ide_init_port_data(hwif, i);
54 54
55 ide_init_port_hw(hwif, &hw); 55 ide_init_port_hw(hwif, &hw);