aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index 161d96241b1b..52a5f15a2223 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -36,6 +36,7 @@ struct subsys_private;
36struct bus_type; 36struct bus_type;
37struct device_node; 37struct device_node;
38struct iommu_ops; 38struct iommu_ops;
39struct iommu_group;
39 40
40struct bus_attribute { 41struct bus_attribute {
41 struct attribute attr; 42 struct attribute attr;
@@ -687,8 +688,14 @@ struct device {
687 const struct attribute_group **groups; /* optional groups */ 688 const struct attribute_group **groups; /* optional groups */
688 689
689 void (*release)(struct device *dev); 690 void (*release)(struct device *dev);
691 struct iommu_group *iommu_group;
690}; 692};
691 693
694static inline struct device *kobj_to_dev(struct kobject *kobj)
695{
696 return container_of(kobj, struct device, kobj);
697}
698
692/* Get the wakeup routines, which depend on struct device */ 699/* Get the wakeup routines, which depend on struct device */
693#include <linux/pm_wakeup.h> 700#include <linux/pm_wakeup.h>
694 701
@@ -865,8 +872,6 @@ extern int (*platform_notify_remove)(struct device *dev);
865extern struct device *get_device(struct device *dev); 872extern struct device *get_device(struct device *dev);
866extern void put_device(struct device *dev); 873extern void put_device(struct device *dev);
867 874
868extern void wait_for_device_probe(void);
869
870#ifdef CONFIG_DEVTMPFS 875#ifdef CONFIG_DEVTMPFS
871extern int devtmpfs_create_node(struct device *dev); 876extern int devtmpfs_create_node(struct device *dev);
872extern int devtmpfs_delete_node(struct device *dev); 877extern int devtmpfs_delete_node(struct device *dev);