aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of_device.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/of_device.h')
-rw-r--r--include/linux/of_device.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/linux/of_device.h b/include/linux/of_device.h
index ae5638480ef2..901b7435e890 100644
--- a/include/linux/of_device.h
+++ b/include/linux/of_device.h
@@ -5,10 +5,11 @@
5#include <linux/of_platform.h> /* temporary until merge */ 5#include <linux/of_platform.h> /* temporary until merge */
6 6
7#ifdef CONFIG_OF_DEVICE 7#ifdef CONFIG_OF_DEVICE
8#include <linux/device.h>
9#include <linux/of.h> 8#include <linux/of.h>
10#include <linux/mod_devicetable.h> 9#include <linux/mod_devicetable.h>
11 10
11struct device;
12
12extern const struct of_device_id *of_match_device( 13extern const struct of_device_id *of_match_device(
13 const struct of_device_id *matches, const struct device *dev); 14 const struct of_device_id *matches, const struct device *dev);
14extern void of_device_make_bus_id(struct device *dev); 15extern void of_device_make_bus_id(struct device *dev);
@@ -34,7 +35,8 @@ extern void of_device_unregister(struct platform_device *ofdev);
34extern ssize_t of_device_get_modalias(struct device *dev, 35extern ssize_t of_device_get_modalias(struct device *dev,
35 char *str, ssize_t len); 36 char *str, ssize_t len);
36 37
37extern int of_device_uevent(struct device *dev, struct kobj_uevent_env *env); 38extern void of_device_uevent(struct device *dev, struct kobj_uevent_env *env);
39extern int of_device_uevent_modalias(struct device *dev, struct kobj_uevent_env *env);
38 40
39static inline void of_device_node_put(struct device *dev) 41static inline void of_device_node_put(struct device *dev)
40{ 42{
@@ -49,7 +51,10 @@ static inline int of_driver_match_device(struct device *dev,
49 return 0; 51 return 0;
50} 52}
51 53
52static inline int of_device_uevent(struct device *dev, 54static inline void of_device_uevent(struct device *dev,
55 struct kobj_uevent_env *env) { }
56
57static inline int of_device_uevent_modalias(struct device *dev,
53 struct kobj_uevent_env *env) 58 struct kobj_uevent_env *env)
54{ 59{
55 return -ENODEV; 60 return -ENODEV;