diff options
Diffstat (limited to 'drivers/of/platform.c')
-rw-r--r-- | drivers/of/platform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/of/platform.c b/drivers/of/platform.c index 92ef53443f..ab3ccab3b6 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c @@ -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); |