aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of/platform.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2011-06-21 12:59:34 -0400
committerGrant Likely <grant.likely@secretlab.ca>2011-06-21 13:02:29 -0400
commitcbb49c2665eebfd1fa2e491403684d0542662137 (patch)
tree11f0d7496cf070c8fedaa5dede9f79b60219d0c3 /drivers/of/platform.c
parent56299378726d5f2ba8d3c8cbbd13cb280ba45e4f (diff)
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 63d3cb73bdb..bb483ef32e0 100644
--- a/drivers/of/platform.c
+++ b/drivers/of/platform.c
@@ -22,6 +22,14 @@
22#include <linux/of_platform.h> 22#include <linux/of_platform.h>
23#include <linux/platform_device.h> 23#include <linux/platform_device.h>
24 24
25const struct of_device_id of_default_bus_match_table[] = {
26 { .compatible = "simple-bus", },
27#ifdef CONFIG_ARM_AMBA
28 { .compatible = "arm,amba-bus", },
29#endif /* CONFIG_ARM_AMBA */
30 {} /* Empty terminated list */
31};
32
25static int of_dev_node_match(struct device *dev, void *data) 33static int of_dev_node_match(struct device *dev, void *data)
26{ 34{
27 return dev->of_node == data; 35 return dev->of_node == data;