Skip to content

Commit

Permalink
[POWERPC] pasemi: Only call of_platform_bus_probe() on relevant platf…
Browse files Browse the repository at this point in the history
…orms

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>
  • Loading branch information
Olof Johansson authored and Paul Mackerras committed May 2, 2007
1 parent 40cd3a4 commit 90f7afe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/powerpc/platforms/pasemi/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 90f7afe

Please sign in to comment.