diff options
author | Olof Johansson <olof@lixom.net> | 2007-05-01 00:43:39 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-05-02 06:04:32 -0400 |
commit | 90f7afefaeda946977824617c225b53f0813e357 (patch) | |
tree | 9e70ce6650de7ab51c45f6af349a32c0387c1ccc /arch/powerpc/platforms/pasemi/setup.c | |
parent | 40cd3a4564ed6b7bc0279430120ca0e9b83cf486 (diff) |
[POWERPC] pasemi: Only call of_platform_bus_probe() on relevant platforms
Only publish of_platform devices if running on a machine that has them.
Signed-off-by: Olof Johansson <olof@lixom.net>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/pasemi/setup.c')
-rw-r--r-- | arch/powerpc/platforms/pasemi/setup.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/pasemi/setup.c b/arch/powerpc/platforms/pasemi/setup.c index f88f0ec4c8cb..38bd9037773b 100644 --- a/arch/powerpc/platforms/pasemi/setup.c +++ b/arch/powerpc/platforms/pasemi/setup.c | |||
@@ -211,7 +211,10 @@ static struct of_device_id pasemi_bus_ids[] = { | |||
211 | 211 | ||
212 | static int __init pasemi_publish_devices(void) | 212 | static int __init pasemi_publish_devices(void) |
213 | { | 213 | { |
214 | /* Publish OF platform devices for southbridge IOs */ | 214 | if (!machine_is(pasemi)) |
215 | return 0; | ||
216 | |||
217 | /* Publish OF platform devices for SDC and other non-PCI devices */ | ||
215 | of_platform_bus_probe(NULL, pasemi_bus_ids, NULL); | 218 | of_platform_bus_probe(NULL, pasemi_bus_ids, NULL); |
216 | 219 | ||
217 | return 0; | 220 | return 0; |