diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-17 18:46:29 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-17 18:46:29 -0400 |
commit | 5c58666fae58cd69f862beaeb88d293ad00f6e37 (patch) | |
tree | 5a42cf57ef7d074c5c1b75cd5f916e986aef6edb /arch | |
parent | e4f7f3a0994522303c006c84cb651e4caba1158e (diff) |
ppc/pmac: remove ppc_ide_md hooks
* Add pmac_ide_init_ports() helper and use it instead of
pmac_ide_init_hwif_ports().
* Remove ppc_ide_md hooks - no need for them
(IDE pmac host driver takes care of all this setup).
* Then remove no longer needed <linux/ide.h> include
from arch/powerpc/platforms/powermac/pmac.h.
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/powermac/pmac.h | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/powermac/setup.c | 8 |
2 files changed, 0 insertions, 13 deletions
diff --git a/arch/powerpc/platforms/powermac/pmac.h b/arch/powerpc/platforms/powermac/pmac.h index b3abaaf61eb4..3362e781b6a7 100644 --- a/arch/powerpc/platforms/powermac/pmac.h +++ b/arch/powerpc/platforms/powermac/pmac.h | |||
@@ -2,7 +2,6 @@ | |||
2 | #define __PMAC_H__ | 2 | #define __PMAC_H__ |
3 | 3 | ||
4 | #include <linux/pci.h> | 4 | #include <linux/pci.h> |
5 | #include <linux/ide.h> | ||
6 | #include <linux/irq.h> | 5 | #include <linux/irq.h> |
7 | 6 | ||
8 | /* | 7 | /* |
@@ -35,10 +34,6 @@ extern void pmac_check_ht_link(void); | |||
35 | 34 | ||
36 | extern void pmac_setup_smp(void); | 35 | extern void pmac_setup_smp(void); |
37 | 36 | ||
38 | extern unsigned long pmac_ide_get_base(int index); | ||
39 | extern void pmac_ide_init_hwif_ports(hw_regs_t *hw, | ||
40 | unsigned long data_port, unsigned long ctrl_port, int *irq); | ||
41 | |||
42 | extern int pmac_nvram_init(void); | 37 | extern int pmac_nvram_init(void); |
43 | extern void pmac_pic_init(void); | 38 | extern void pmac_pic_init(void); |
44 | 39 | ||
diff --git a/arch/powerpc/platforms/powermac/setup.c b/arch/powerpc/platforms/powermac/setup.c index 36ff1b6b7fac..2693fc371eab 100644 --- a/arch/powerpc/platforms/powermac/setup.c +++ b/arch/powerpc/platforms/powermac/setup.c | |||
@@ -574,14 +574,6 @@ static int __init pmac_probe(void) | |||
574 | ISA_DMA_THRESHOLD = ~0L; | 574 | ISA_DMA_THRESHOLD = ~0L; |
575 | DMA_MODE_READ = 1; | 575 | DMA_MODE_READ = 1; |
576 | DMA_MODE_WRITE = 2; | 576 | DMA_MODE_WRITE = 2; |
577 | |||
578 | #if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE) | ||
579 | #ifdef CONFIG_BLK_DEV_IDE_PMAC | ||
580 | ppc_ide_md.ide_init_hwif = pmac_ide_init_hwif_ports; | ||
581 | ppc_ide_md.default_io_base = pmac_ide_get_base; | ||
582 | #endif /* CONFIG_BLK_DEV_IDE_PMAC */ | ||
583 | #endif /* defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE) */ | ||
584 | |||
585 | #endif /* CONFIG_PPC32 */ | 577 | #endif /* CONFIG_PPC32 */ |
586 | 578 | ||
587 | #ifdef CONFIG_PMAC_SMU | 579 | #ifdef CONFIG_PMAC_SMU |