diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-17 18:46:25 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-17 18:46:25 -0400 |
commit | e6bfa38a4803646e212ef542b957344e790c3733 (patch) | |
tree | 677e9eccad910361e2b38eb2e24765894a89b8ee /drivers/ide | |
parent | 05734266c07ac588d1773bd9ae51a0ff20456443 (diff) |
ide: remove ide_init_hwif_ports()
ide_init_hwif_ports() is only used by init_ide_data() now, inline it there.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/ide.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c index a60b956db51..9e4d503bc71 100644 --- a/drivers/ide/ide.c +++ b/drivers/ide/ide.c | |||
@@ -197,13 +197,20 @@ static void __init init_ide_data (void) | |||
197 | /* Initialise all interface structures */ | 197 | /* Initialise all interface structures */ |
198 | for (index = 0; index < MAX_HWIFS; ++index) { | 198 | for (index = 0; index < MAX_HWIFS; ++index) { |
199 | ide_hwif_t *hwif = &ide_hwifs[index]; | 199 | ide_hwif_t *hwif = &ide_hwifs[index]; |
200 | unsigned long io_addr = ide_default_io_base(index); | ||
201 | unsigned long ctl_addr = ide_default_io_ctl(io_addr); | ||
200 | 202 | ||
201 | ide_init_port_data(hwif, index); | 203 | ide_init_port_data(hwif, index); |
202 | 204 | ||
205 | #ifdef CONFIG_IDE_ARCH_OBSOLETE_INIT | ||
203 | memset(&hw, 0, sizeof(hw)); | 206 | memset(&hw, 0, sizeof(hw)); |
204 | ide_init_hwif_ports(&hw, ide_default_io_base(index), 0, | 207 | ide_std_init_ports(&hw, io_addr, ctl_addr); |
205 | &hwif->irq); | 208 | # ifdef CONFIG_PPC32 |
209 | if (ppc_ide_md.ide_init_hwif) | ||
210 | ppc_ide_md.ide_init_hwif(&hw, io_addr, 0, &hwif->irq); | ||
211 | # endif | ||
206 | memcpy(hwif->io_ports, hw.io_ports, sizeof(hw.io_ports)); | 212 | memcpy(hwif->io_ports, hw.io_ports, sizeof(hw.io_ports)); |
213 | #endif | ||
207 | hwif->noprobe = !hwif->io_ports[IDE_DATA_OFFSET]; | 214 | hwif->noprobe = !hwif->io_ports[IDE_DATA_OFFSET]; |
208 | #if !defined(CONFIG_PPC32) || !defined(CONFIG_PCI) | 215 | #if !defined(CONFIG_PPC32) || !defined(CONFIG_PCI) |
209 | hwif->irq = | 216 | hwif->irq = |