提交 90f7afef 编写于 作者: O Olof Johansson 提交者: Paul Mackerras

[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: NOlof Johansson <olof@lixom.net>
Acked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 40cd3a45
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册