Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81248
b: refs/heads/master
c: e25c47f
h: refs/heads/master
v: v3
  • Loading branch information
Grant Likely authored and Paul Mackerras committed Jan 17, 2008
1 parent f9b6b02 commit e890baa
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 27 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d518b71784c6fa4c8eafb334236883f763f8e296
refs/heads/master: e25c47ffa97ca5e4602593b03ce6d21cff652864
5 changes: 1 addition & 4 deletions trunk/arch/powerpc/platforms/cell/io-workarounds.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,6 @@ static int __init spider_pci_workaround_init(void)
{
struct pci_controller *phb;

if (!machine_is(cell))
return 0;

/* Find spider bridges. We assume they have been all probed
* in setup_arch(). If that was to change, we would need to
* update this code to cope with dynamically added busses
Expand Down Expand Up @@ -343,4 +340,4 @@ static int __init spider_pci_workaround_init(void)

return 0;
}
arch_initcall(spider_pci_workaround_init);
machine_arch_initcall(cell, spider_pci_workaround_init);
7 changes: 2 additions & 5 deletions trunk/arch/powerpc/platforms/cell/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -700,10 +700,6 @@ static int __init cell_iommu_init(void)
{
struct device_node *np;

if (!machine_is(cell) &&
!machine_is(celleb_native))
return -ENODEV;

/* If IOMMU is disabled or we have little enough RAM to not need
* to enable it, we setup a direct mapping.
*
Expand Down Expand Up @@ -746,5 +742,6 @@ static int __init cell_iommu_init(void)

return 0;
}
arch_initcall(cell_iommu_init);
machine_arch_initcall(cell, cell_iommu_init);
machine_arch_initcall(celleb_native, cell_iommu_init);

5 changes: 1 addition & 4 deletions trunk/arch/powerpc/platforms/cell/pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,6 @@ static int __init cbe_init_pm_irq(void)
unsigned int irq;
int rc, node;

if (!machine_is(cell))
return 0;

for_each_node(node) {
irq = irq_create_mapping(NULL, IIC_IRQ_IOEX_PMI |
(node << IIC_IRQ_NODE_SHIFT));
Expand All @@ -404,7 +401,7 @@ static int __init cbe_init_pm_irq(void)

return 0;
}
arch_initcall(cbe_init_pm_irq);
machine_arch_initcall(cell, cbe_init_pm_irq);

void cbe_sync_irq(int node)
{
Expand Down
5 changes: 1 addition & 4 deletions trunk/arch/powerpc/platforms/cell/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ static int __init cell_publish_devices(void)
{
int node;

if (!machine_is(cell))
return 0;

/* Publish OF platform devices for southbridge IOs */
of_platform_bus_probe(NULL, NULL, NULL);

Expand All @@ -101,7 +98,7 @@ static int __init cell_publish_devices(void)
}
return 0;
}
device_initcall(cell_publish_devices);
machine_device_initcall(cell, cell_publish_devices);

static void cell_mpic_cascade(unsigned int irq, struct irq_desc *desc)
{
Expand Down
5 changes: 1 addition & 4 deletions trunk/arch/powerpc/platforms/celleb/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,11 @@ static struct notifier_block celleb_of_bus_notifier = {

static int __init celleb_init_iommu(void)
{
if (!machine_is(celleb_beat))
return -ENODEV;

celleb_init_direct_mapping();
set_pci_dma_ops(&dma_direct_ops);
bus_register_notifier(&of_platform_bus_type, &celleb_of_bus_notifier);

return 0;
}

arch_initcall(celleb_init_iommu);
machine_arch_initcall(celleb_beat, celleb_init_iommu);
7 changes: 2 additions & 5 deletions trunk/arch/powerpc/platforms/celleb/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,18 +111,15 @@ static struct of_device_id celleb_bus_ids[] __initdata = {

static int __init celleb_publish_devices(void)
{
if (!machine_is(celleb_beat) &&
!machine_is(celleb_native))
return -ENODEV;

/* Publish OF platform devices for southbridge IOs */
of_platform_bus_probe(NULL, celleb_bus_ids, NULL);

celleb_pci_workaround_init();

return 0;
}
device_initcall(celleb_publish_devices);
machine_device_initcall(celleb_beat, celleb_publish_devices);
machine_device_initcall(celleb_native, celleb_publish_devices);


/*
Expand Down

0 comments on commit e890baa

Please sign in to comment.