diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ide/arm/bast-ide.c | 2 | ||||
-rw-r--r-- | drivers/ide/arm/palm_bk3710.c | 2 | ||||
-rw-r--r-- | drivers/ide/ide.c | 27 | ||||
-rw-r--r-- | drivers/ide/legacy/ide-cs.c | 2 | ||||
-rw-r--r-- | drivers/ide/pci/delkin_cb.c | 2 |
5 files changed, 5 insertions, 30 deletions
diff --git a/drivers/ide/arm/bast-ide.c b/drivers/ide/arm/bast-ide.c index 161d30c8481e..a22da7ab2b57 100644 --- a/drivers/ide/arm/bast-ide.c +++ b/drivers/ide/arm/bast-ide.c | |||
@@ -41,7 +41,7 @@ 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 | ||
diff --git a/drivers/ide/arm/palm_bk3710.c b/drivers/ide/arm/palm_bk3710.c index 8e1f6bd33887..0a722503c102 100644 --- a/drivers/ide/arm/palm_bk3710.c +++ b/drivers/ide/arm/palm_bk3710.c | |||
@@ -378,7 +378,7 @@ static int __devinit palm_bk3710_probe(struct platform_device *pdev) | |||
378 | hw.irq = irq->start; | 378 | hw.irq = irq->start; |
379 | hw.chipset = ide_palm3710; | 379 | hw.chipset = ide_palm3710; |
380 | 380 | ||
381 | hwif = ide_deprecated_find_port(hw.io_ports[IDE_DATA_OFFSET]); | 381 | hwif = ide_find_port(hw.io_ports[IDE_DATA_OFFSET]); |
382 | if (hwif == NULL) | 382 | if (hwif == NULL) |
383 | goto out; | 383 | goto out; |
384 | 384 | ||
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c index 67ce697a9d51..bd5ff7d987d0 100644 --- a/drivers/ide/ide.c +++ b/drivers/ide/ide.c | |||
@@ -618,31 +618,6 @@ void ide_init_port_hw(ide_hwif_t *hwif, hw_regs_t *hw) | |||
618 | } | 618 | } |
619 | EXPORT_SYMBOL_GPL(ide_init_port_hw); | 619 | EXPORT_SYMBOL_GPL(ide_init_port_hw); |
620 | 620 | ||
621 | ide_hwif_t *ide_deprecated_find_port(unsigned long base) | ||
622 | { | ||
623 | ide_hwif_t *hwif; | ||
624 | int i; | ||
625 | |||
626 | for (i = 0; i < MAX_HWIFS; i++) { | ||
627 | hwif = &ide_hwifs[i]; | ||
628 | if (hwif->io_ports[IDE_DATA_OFFSET] == base) | ||
629 | goto found; | ||
630 | } | ||
631 | |||
632 | for (i = 0; i < MAX_HWIFS; i++) { | ||
633 | hwif = &ide_hwifs[i]; | ||
634 | if (hwif->hold) | ||
635 | continue; | ||
636 | if (!hwif->present && hwif->mate == NULL) | ||
637 | goto found; | ||
638 | } | ||
639 | |||
640 | hwif = NULL; | ||
641 | found: | ||
642 | return hwif; | ||
643 | } | ||
644 | EXPORT_SYMBOL_GPL(ide_deprecated_find_port); | ||
645 | |||
646 | /** | 621 | /** |
647 | * ide_register_hw - register IDE interface | 622 | * ide_register_hw - register IDE interface |
648 | * @hw: hardware registers | 623 | * @hw: hardware registers |
@@ -662,7 +637,7 @@ int ide_register_hw(hw_regs_t *hw, void (*quirkproc)(ide_drive_t *), | |||
662 | u8 idx[4] = { 0xff, 0xff, 0xff, 0xff }; | 637 | u8 idx[4] = { 0xff, 0xff, 0xff, 0xff }; |
663 | 638 | ||
664 | do { | 639 | do { |
665 | hwif = ide_deprecated_find_port(hw->io_ports[IDE_DATA_OFFSET]); | 640 | hwif = ide_find_port(hw->io_ports[IDE_DATA_OFFSET]); |
666 | if (hwif) | 641 | if (hwif) |
667 | goto found; | 642 | goto found; |
668 | for (index = 0; index < MAX_HWIFS; index++) | 643 | for (index = 0; index < MAX_HWIFS; index++) |
diff --git a/drivers/ide/legacy/ide-cs.c b/drivers/ide/legacy/ide-cs.c index 15ccf6944ae2..de2e5944809e 100644 --- a/drivers/ide/legacy/ide-cs.c +++ b/drivers/ide/legacy/ide-cs.c | |||
@@ -156,7 +156,7 @@ static int idecs_register(unsigned long io, unsigned long ctl, unsigned long irq | |||
156 | hw.chipset = ide_pci; | 156 | hw.chipset = ide_pci; |
157 | hw.dev = &handle->dev; | 157 | hw.dev = &handle->dev; |
158 | 158 | ||
159 | hwif = ide_deprecated_find_port(hw.io_ports[IDE_DATA_OFFSET]); | 159 | hwif = ide_find_port(hw.io_ports[IDE_DATA_OFFSET]); |
160 | if (hwif == NULL) | 160 | if (hwif == NULL) |
161 | return -1; | 161 | return -1; |
162 | 162 | ||
diff --git a/drivers/ide/pci/delkin_cb.c b/drivers/ide/pci/delkin_cb.c index 3f9cd64c26a6..e08e13a0bb6e 100644 --- a/drivers/ide/pci/delkin_cb.c +++ b/drivers/ide/pci/delkin_cb.c | |||
@@ -78,7 +78,7 @@ delkin_cb_probe (struct pci_dev *dev, const struct pci_device_id *id) | |||
78 | hw.irq = dev->irq; | 78 | hw.irq = dev->irq; |
79 | hw.chipset = ide_pci; /* this enables IRQ sharing */ | 79 | hw.chipset = ide_pci; /* this enables IRQ sharing */ |
80 | 80 | ||
81 | hwif = ide_deprecated_find_port(hw.io_ports[IDE_DATA_OFFSET]); | 81 | hwif = ide_find_port(hw.io_ports[IDE_DATA_OFFSET]); |
82 | if (hwif == NULL) | 82 | if (hwif == NULL) |
83 | goto out_disable; | 83 | goto out_disable; |
84 | 84 | ||