aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/of/platform.c8
-rw-r--r--include/linux/of_platform.h2
2 files changed, 10 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 @@
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;
diff --git a/include/linux/of_platform.h b/include/linux/of_platform.h
index fb51ae38cea7..8f023f889a8a 100644
--- a/include/linux/of_platform.h
+++ b/include/linux/of_platform.h
@@ -40,6 +40,8 @@ struct of_platform_driver
40#define to_of_platform_driver(drv) \ 40#define to_of_platform_driver(drv) \
41 container_of(drv,struct of_platform_driver, driver) 41 container_of(drv,struct of_platform_driver, driver)
42 42
43extern const struct of_device_id of_default_bus_match_table[];
44
43/* Platform drivers register/unregister */ 45/* Platform drivers register/unregister */
44extern struct platform_device *of_device_alloc(struct device_node *np, 46extern struct platform_device *of_device_alloc(struct device_node *np,
45 const char *bus_id, 47 const char *bus_id,