summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/40x/virtex.c
diff options
context:
space:
mode:
authorJosh Boyer2007-12-24 17:42:02 +0100
committerJosh Boyer2007-12-24 17:42:02 +0100
commit3f8c5c3b4d07fa24e7081a54798ddfab7360a102 (patch)
tree3bcd0754918c06ed8d532b09f1135a1b7316691c /arch/powerpc/platforms/40x/virtex.c
parent[POWERPC] Remove unneeded variable declarations from mpc837x_mds (diff)
downloadkernel-qcow2-linux-3f8c5c3b4d07fa24e7081a54798ddfab7360a102.tar.gz
kernel-qcow2-linux-3f8c5c3b4d07fa24e7081a54798ddfab7360a102.tar.xz
kernel-qcow2-linux-3f8c5c3b4d07fa24e7081a54798ddfab7360a102.zip
[POWERPC] 4xx: Use machine_device_initcall for bus probe
Some machine_xx_initcall macros were recently added that check for the machine type before calling the function. This converts the 4xx platforms to use those for bus probing. Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Diffstat (limited to 'arch/powerpc/platforms/40x/virtex.c')
-rw-r--r--arch/powerpc/platforms/40x/virtex.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/40x/virtex.c b/arch/powerpc/platforms/40x/virtex.c
index 14bbc328170f..43fcc8e9f7d0 100644
--- a/arch/powerpc/platforms/40x/virtex.c
+++ b/arch/powerpc/platforms/40x/virtex.c
@@ -17,14 +17,11 @@
static int __init virtex_device_probe(void)
{
- if (!machine_is(virtex))
- return 0;
-
of_platform_bus_probe(NULL, NULL, NULL);
return 0;
}
-device_initcall(virtex_device_probe);
+machine_device_initcall(virtex, virtex_device_probe);
static int __init virtex_probe(void)
{