diff options
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kernel/setup_32.c | 8 | ||||
-rw-r--r-- | arch/powerpc/platforms/powermac/pci.c | 22 | ||||
-rw-r--r-- | arch/powerpc/platforms/powermac/pmac.h | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/powermac/setup.c | 8 |
4 files changed, 0 insertions, 43 deletions
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c index cd870a823d18..06d918d94dd1 100644 --- a/arch/powerpc/kernel/setup_32.c +++ b/arch/powerpc/kernel/setup_32.c | |||
@@ -10,9 +10,6 @@ | |||
10 | #include <linux/reboot.h> | 10 | #include <linux/reboot.h> |
11 | #include <linux/delay.h> | 11 | #include <linux/delay.h> |
12 | #include <linux/initrd.h> | 12 | #include <linux/initrd.h> |
13 | #if defined(CONFIG_IDE) || defined(CONFIG_IDE_MODULE) | ||
14 | #include <linux/ide.h> | ||
15 | #endif | ||
16 | #include <linux/tty.h> | 13 | #include <linux/tty.h> |
17 | #include <linux/bootmem.h> | 14 | #include <linux/bootmem.h> |
18 | #include <linux/seq_file.h> | 15 | #include <linux/seq_file.h> |
@@ -51,11 +48,6 @@ | |||
51 | 48 | ||
52 | extern void bootx_init(unsigned long r4, unsigned long phys); | 49 | extern void bootx_init(unsigned long r4, unsigned long phys); |
53 | 50 | ||
54 | #if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE) | ||
55 | struct ide_machdep_calls ppc_ide_md; | ||
56 | EXPORT_SYMBOL(ppc_ide_md); | ||
57 | #endif | ||
58 | |||
59 | int boot_cpuid; | 51 | int boot_cpuid; |
60 | EXPORT_SYMBOL_GPL(boot_cpuid); | 52 | EXPORT_SYMBOL_GPL(boot_cpuid); |
61 | int boot_cpuid_phys; | 53 | int boot_cpuid_phys; |
diff --git a/arch/powerpc/platforms/powermac/pci.c b/arch/powerpc/platforms/powermac/pci.c index 1c58db9d42cb..bcf50d7056e9 100644 --- a/arch/powerpc/platforms/powermac/pci.c +++ b/arch/powerpc/platforms/powermac/pci.c | |||
@@ -1144,28 +1144,6 @@ void __init pmac_pcibios_after_init(void) | |||
1144 | { | 1144 | { |
1145 | struct device_node* nd; | 1145 | struct device_node* nd; |
1146 | 1146 | ||
1147 | #ifdef CONFIG_BLK_DEV_IDE | ||
1148 | struct pci_dev *dev = NULL; | ||
1149 | |||
1150 | /* OF fails to initialize IDE controllers on macs | ||
1151 | * (and maybe other machines) | ||
1152 | * | ||
1153 | * Ideally, this should be moved to the IDE layer, but we need | ||
1154 | * to check specifically with Andre Hedrick how to do it cleanly | ||
1155 | * since the common IDE code seem to care about the fact that the | ||
1156 | * BIOS may have disabled a controller. | ||
1157 | * | ||
1158 | * -- BenH | ||
1159 | */ | ||
1160 | for_each_pci_dev(dev) { | ||
1161 | if ((dev->class >> 16) != PCI_BASE_CLASS_STORAGE) | ||
1162 | continue; | ||
1163 | if (pci_enable_device(dev)) | ||
1164 | printk(KERN_WARNING | ||
1165 | "pci: Failed to enable %s\n", pci_name(dev)); | ||
1166 | } | ||
1167 | #endif /* CONFIG_BLK_DEV_IDE */ | ||
1168 | |||
1169 | for_each_node_by_name(nd, "firewire") { | 1147 | for_each_node_by_name(nd, "firewire") { |
1170 | if (nd->parent && (of_device_is_compatible(nd, "pci106b,18") || | 1148 | if (nd->parent && (of_device_is_compatible(nd, "pci106b,18") || |
1171 | of_device_is_compatible(nd, "pci106b,30") || | 1149 | of_device_is_compatible(nd, "pci106b,30") || |
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 |