Message ID | 4DEEE8AF.50603@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/of/platform.c b/drivers/of/platform.c index 9b785be..6955932 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c @@ -21,6 +21,7 @@ #include <linux/of_irq.h> #include <linux/of_platform.h> #include <linux/platform_device.h> +#include <linux/amba/bus.h> static int of_dev_node_match(struct device *dev, void *data) { @@ -234,6 +235,11 @@ static int of_platform_bus_create(struct device_node *bus, return 0; } + if (of_device_is_compatible(bus, "arm,amba-device")) { + of_amba_device_create(bus, parent); + return 0; + } + dev = of_platform_device_create(bus, NULL, parent); if (!dev || !of_match_node(matches, bus))