diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2008-01-02 14:14:36 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-01-16 22:57:15 -0500 |
commit | e25c47ffa97ca5e4602593b03ce6d21cff652864 (patch) | |
tree | 1bbd57e332fde97d5c801d881aee57aada56113e /arch/powerpc/platforms/celleb/setup.c | |
parent | d518b71784c6fa4c8eafb334236883f763f8e296 (diff) |
[POWERPC] cell: Use machine_*_initcall() hooks in platform code
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/celleb/setup.c')
-rw-r--r-- | arch/powerpc/platforms/celleb/setup.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/powerpc/platforms/celleb/setup.c b/arch/powerpc/platforms/celleb/setup.c index 0f0c4680bf01..f27ae1e3fb58 100644 --- a/arch/powerpc/platforms/celleb/setup.c +++ b/arch/powerpc/platforms/celleb/setup.c | |||
@@ -111,10 +111,6 @@ static struct of_device_id celleb_bus_ids[] __initdata = { | |||
111 | 111 | ||
112 | static int __init celleb_publish_devices(void) | 112 | static int __init celleb_publish_devices(void) |
113 | { | 113 | { |
114 | if (!machine_is(celleb_beat) && | ||
115 | !machine_is(celleb_native)) | ||
116 | return -ENODEV; | ||
117 | |||
118 | /* Publish OF platform devices for southbridge IOs */ | 114 | /* Publish OF platform devices for southbridge IOs */ |
119 | of_platform_bus_probe(NULL, celleb_bus_ids, NULL); | 115 | of_platform_bus_probe(NULL, celleb_bus_ids, NULL); |
120 | 116 | ||
@@ -122,7 +118,8 @@ static int __init celleb_publish_devices(void) | |||
122 | 118 | ||
123 | return 0; | 119 | return 0; |
124 | } | 120 | } |
125 | device_initcall(celleb_publish_devices); | 121 | machine_device_initcall(celleb_beat, celleb_publish_devices); |
122 | machine_device_initcall(celleb_native, celleb_publish_devices); | ||
126 | 123 | ||
127 | 124 | ||
128 | /* | 125 | /* |