diff options
author | Josh Boyer <jwboyer@linux.vnet.ibm.com> | 2007-12-24 11:42:02 -0500 |
---|---|---|
committer | Josh Boyer <jwboyer@linux.vnet.ibm.com> | 2007-12-24 11:42:02 -0500 |
commit | 3f8c5c3b4d07fa24e7081a54798ddfab7360a102 (patch) | |
tree | 3bcd0754918c06ed8d532b09f1135a1b7316691c /arch/powerpc/platforms/40x/ep405.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/40x/ep405.c')
-rw-r--r-- | arch/powerpc/platforms/40x/ep405.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/40x/ep405.c b/arch/powerpc/platforms/40x/ep405.c index 8f73b6222e8b..13d1345026da 100644 --- a/arch/powerpc/platforms/40x/ep405.c +++ b/arch/powerpc/platforms/40x/ep405.c | |||
@@ -57,14 +57,11 @@ static __initdata struct of_device_id ep405_of_bus[] = { | |||
57 | 57 | ||
58 | static int __init ep405_device_probe(void) | 58 | static int __init ep405_device_probe(void) |
59 | { | 59 | { |
60 | if (!machine_is(ep405)) | ||
61 | return 0; | ||
62 | |||
63 | of_platform_bus_probe(NULL, ep405_of_bus, NULL); | 60 | of_platform_bus_probe(NULL, ep405_of_bus, NULL); |
64 | 61 | ||
65 | return 0; | 62 | return 0; |
66 | } | 63 | } |
67 | device_initcall(ep405_device_probe); | 64 | machine_device_initcall(ep405, ep405_device_probe); |
68 | 65 | ||
69 | static void __init ep405_init_bcsr(void) | 66 | static void __init ep405_init_bcsr(void) |
70 | { | 67 | { |