diff options
author | Josh Boyer <jwboyer@linux.vnet.ibm.com> | 2007-12-24 10:42:02 -0600 |
---|---|---|
committer | Josh Boyer <jwboyer@linux.vnet.ibm.com> | 2007-12-24 10:42:02 -0600 |
commit | 3f8c5c3b4d07fa24e7081a54798ddfab7360a102 (patch) | |
tree | 3bcd0754918c06ed8d532b09f1135a1b7316691c /arch/powerpc/platforms/44x/ebony.c | |
parent | 9e0fd5f06cbdb3bb47ce54bdbfa43257e6b2b789 (diff) |
[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/44x/ebony.c')
-rw-r--r-- | arch/powerpc/platforms/44x/ebony.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/44x/ebony.c b/arch/powerpc/platforms/44x/ebony.c index 767db4f9fc2c..481a016e1535 100644 --- a/arch/powerpc/platforms/44x/ebony.c +++ b/arch/powerpc/platforms/44x/ebony.c @@ -37,14 +37,11 @@ static __initdata struct of_device_id ebony_of_bus[] = { static int __init ebony_device_probe(void) { - if (!machine_is(ebony)) - return 0; - of_platform_bus_probe(NULL, ebony_of_bus, NULL); return 0; } -device_initcall(ebony_device_probe); +machine_device_initcall(ebony, ebony_device_probe); /* * Called very early, MMU is off, device-tree isn't unflattened |