diff options
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/82xx/ep8248e.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/file.c | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/inode.c | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/pasemi/gpio_mdio.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/powermac/pci.c | 22 | ||||
-rw-r--r-- | arch/powerpc/platforms/powermac/pfunc_core.c | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/powermac/pmac.h | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/powermac/setup.c | 8 |
8 files changed, 2 insertions, 40 deletions
diff --git a/arch/powerpc/platforms/82xx/ep8248e.c b/arch/powerpc/platforms/82xx/ep8248e.c index ba93d8ae9b0c..d5770fdf7f09 100644 --- a/arch/powerpc/platforms/82xx/ep8248e.c +++ b/arch/powerpc/platforms/82xx/ep8248e.c | |||
@@ -138,7 +138,7 @@ static int __devinit ep8248e_mdio_probe(struct of_device *ofdev, | |||
138 | 138 | ||
139 | bus->name = "ep8248e-mdio-bitbang"; | 139 | bus->name = "ep8248e-mdio-bitbang"; |
140 | bus->dev = &ofdev->dev; | 140 | bus->dev = &ofdev->dev; |
141 | bus->id = res.start; | 141 | snprintf(bus->id, MII_BUS_ID_SIZE, "%x", res.start); |
142 | 142 | ||
143 | return mdiobus_register(bus); | 143 | return mdiobus_register(bus); |
144 | } | 144 | } |
diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/cell/spufs/file.c index ba791e931bd6..08f44d1971ac 100644 --- a/arch/powerpc/platforms/cell/spufs/file.c +++ b/arch/powerpc/platforms/cell/spufs/file.c | |||
@@ -32,7 +32,6 @@ | |||
32 | #include <linux/marker.h> | 32 | #include <linux/marker.h> |
33 | 33 | ||
34 | #include <asm/io.h> | 34 | #include <asm/io.h> |
35 | #include <asm/semaphore.h> | ||
36 | #include <asm/spu.h> | 35 | #include <asm/spu.h> |
37 | #include <asm/spu_info.h> | 36 | #include <asm/spu_info.h> |
38 | #include <asm/uaccess.h> | 37 | #include <asm/uaccess.h> |
diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c index 6d1228c66c5e..0c32a05ab068 100644 --- a/arch/powerpc/platforms/cell/spufs/inode.c +++ b/arch/powerpc/platforms/cell/spufs/inode.c | |||
@@ -35,7 +35,6 @@ | |||
35 | #include <linux/parser.h> | 35 | #include <linux/parser.h> |
36 | 36 | ||
37 | #include <asm/prom.h> | 37 | #include <asm/prom.h> |
38 | #include <asm/semaphore.h> | ||
39 | #include <asm/spu.h> | 38 | #include <asm/spu.h> |
40 | #include <asm/spu_priv1.h> | 39 | #include <asm/spu_priv1.h> |
41 | #include <asm/uaccess.h> | 40 | #include <asm/uaccess.h> |
diff --git a/arch/powerpc/platforms/pasemi/gpio_mdio.c b/arch/powerpc/platforms/pasemi/gpio_mdio.c index b46542990cf8..ab6955412ba4 100644 --- a/arch/powerpc/platforms/pasemi/gpio_mdio.c +++ b/arch/powerpc/platforms/pasemi/gpio_mdio.c | |||
@@ -241,7 +241,7 @@ static int __devinit gpio_mdio_probe(struct of_device *ofdev, | |||
241 | new_bus->reset = &gpio_mdio_reset; | 241 | new_bus->reset = &gpio_mdio_reset; |
242 | 242 | ||
243 | prop = of_get_property(np, "reg", NULL); | 243 | prop = of_get_property(np, "reg", NULL); |
244 | new_bus->id = *prop; | 244 | snprintf(new_bus->id, MII_BUS_ID_SIZE, "%x", *prop); |
245 | new_bus->priv = priv; | 245 | new_bus->priv = priv; |
246 | 246 | ||
247 | new_bus->phy_mask = 0; | 247 | new_bus->phy_mask = 0; |
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/pfunc_core.c b/arch/powerpc/platforms/powermac/pfunc_core.c index 85434231ae14..96d5ce50364e 100644 --- a/arch/powerpc/platforms/powermac/pfunc_core.c +++ b/arch/powerpc/platforms/powermac/pfunc_core.c | |||
@@ -12,7 +12,6 @@ | |||
12 | #include <linux/module.h> | 12 | #include <linux/module.h> |
13 | #include <linux/mutex.h> | 13 | #include <linux/mutex.h> |
14 | 14 | ||
15 | #include <asm/semaphore.h> | ||
16 | #include <asm/prom.h> | 15 | #include <asm/prom.h> |
17 | #include <asm/pmac_pfunc.h> | 16 | #include <asm/pmac_pfunc.h> |
18 | 17 | ||
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 59404baf911f..bf44c5441a36 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 |