9
0
Fork 0

of: Create platform_device when creating AMBA device failed

If creating an AMBA device failed, maybe because AMBA support is
not compiled in, register the device as regular platform device.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2015-01-27 22:48:48 +01:00
parent f765925bb9
commit c42178d9fc
1 changed files with 2 additions and 2 deletions

View File

@ -312,8 +312,8 @@ static int of_platform_bus_create(struct device_node *bus,
}
if (of_device_is_compatible(bus, "arm,primecell")) {
of_amba_device_create(bus);
return 0;
if (of_amba_device_create(bus))
return 0;
}
dev = of_platform_device_create(bus, parent);