summaryrefslogtreecommitdiffstats
path: root/drivers/of/platform.c
diff options
context:
space:
mode:
authorGrant Likely2011-06-21 18:59:34 +0200
committerGrant Likely2011-06-21 19:02:29 +0200
commitcbb49c2665eebfd1fa2e491403684d0542662137 (patch)
tree11f0d7496cf070c8fedaa5dede9f79b60219d0c3 /drivers/of/platform.c
parentLinux 3.0-rc4 (diff)
downloadkernel-qcow2-linux-cbb49c2665eebfd1fa2e491403684d0542662137.tar.gz
kernel-qcow2-linux-cbb49c2665eebfd1fa2e491403684d0542662137.tar.xz
kernel-qcow2-linux-cbb49c2665eebfd1fa2e491403684d0542662137.zip
dt: Add default match table for bus ids
No need for most platforms to define their own bus table when calling of_platform_populate(). Supply a stock one. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/of/platform.c')
-rw-r--r--drivers/of/platform.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/of/platform.c b/drivers/of/platform.c
index 63d3cb73bdb9..bb483ef32e00 100644
--- a/drivers/of/platform.c
+++ b/drivers/of/platform.c
@@ -22,6 +22,14 @@
#include <linux/of_platform.h>
#include <linux/platform_device.h>
+const struct of_device_id of_default_bus_match_table[] = {
+ { .compatible = "simple-bus", },
+#ifdef CONFIG_ARM_AMBA
+ { .compatible = "arm,amba-bus", },
+#endif /* CONFIG_ARM_AMBA */
+ {} /* Empty terminated list */
+};
+
static int of_dev_node_match(struct device *dev, void *data)
{
return dev->of_node == data;