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:
parent
f765925bb9
commit
c42178d9fc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue