summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/cell/setup.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2006-11-11 09:25:00 +0300
committerPaul Mackerras <paulus@samba.org>2006-12-04 08:08:56 +0300
commit96289b07eb319ab3f64db3f0d981970aa1d60a60 (patch)
tree47dc1870819db358872bf8909c31505bca326bd4 /arch/powerpc/platforms/cell/setup.c
parent7eebde700fe6fd6573e80bd8e5ed82b4ae705575 (diff)
downloadlinux-96289b07eb319ab3f64db3f0d981970aa1d60a60.tar.xz
[POWERPC] Hook of_platform_bus_probe with cell
Hook up of_platform_bus_probe with the cell platform in order to publish the non-PCI devices in the device-tree of cell blades as of_platform_device(s) Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/cell/setup.c')
-rw-r--r--arch/powerpc/platforms/cell/setup.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/cell/setup.c b/arch/powerpc/platforms/cell/setup.c
index 13f628def363..d704bc19a646 100644
--- a/arch/powerpc/platforms/cell/setup.c
+++ b/arch/powerpc/platforms/cell/setup.c
@@ -51,6 +51,7 @@
#include <asm/spu_priv1.h>
#include <asm/udbg.h>
#include <asm/mpic.h>
+#include <asm/of_platform.h>
#include "interrupt.h"
#include "iommu.h"
@@ -81,6 +82,14 @@ static void cell_progress(char *s, unsigned short hex)
printk("*** %04x : %s\n", hex, s ? s : "");
}
+static int __init cell_publish_devices(void)
+{
+ if (machine_is(cell))
+ of_platform_bus_probe(NULL, NULL, NULL);
+ return 0;
+}
+device_initcall(cell_publish_devices);
+
static void cell_mpic_cascade(unsigned int irq, struct irq_desc *desc)
{
struct mpic *mpic = desc->handler_data;