]> err.no Git - linux-2.6/commitdiff
[POWERPC] pasemi: Only call of_platform_bus_probe() on relevant platforms
authorOlof Johansson <olof@lixom.net>
Tue, 1 May 2007 04:43:39 +0000 (14:43 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 2 May 2007 10:04:32 +0000 (20:04 +1000)
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>
arch/powerpc/platforms/pasemi/setup.c

index f88f0ec4c8cb2d6ec042021e67a8d3e07c8064a3..38bd9037773bbe5a625e33c19de7d8368dba3819 100644 (file)
@@ -211,7 +211,10 @@ static struct of_device_id pasemi_bus_ids[] = {
 
 static int __init pasemi_publish_devices(void)
 {
-       /* Publish OF platform devices for southbridge IOs */
+       if (!machine_is(pasemi))
+               return 0;
+
+       /* Publish OF platform devices for SDC and other non-PCI devices */
        of_platform_bus_probe(NULL, pasemi_bus_ids, NULL);
 
        return 0;