From: Olof Johansson Date: Tue, 1 May 2007 04:43:39 +0000 (+1000) Subject: [POWERPC] pasemi: Only call of_platform_bus_probe() on relevant platforms X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=90f7afefaeda946977824617c225b53f0813e357;p=linux-beck.git [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 Acked-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras --- 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[] = { 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;