diff options
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 9 |
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; | |||
36 | struct bus_type; | 36 | struct bus_type; |
37 | struct device_node; | 37 | struct device_node; |
38 | struct iommu_ops; | 38 | struct iommu_ops; |
39 | struct iommu_group; | ||
39 | 40 | ||
40 | struct bus_attribute { | 41 | struct 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 | ||
694 | static 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); | |||
865 | extern struct device *get_device(struct device *dev); | 872 | extern struct device *get_device(struct device *dev); |
866 | extern void put_device(struct device *dev); | 873 | extern void put_device(struct device *dev); |
867 | 874 | ||
868 | extern void wait_for_device_probe(void); | ||
869 | |||
870 | #ifdef CONFIG_DEVTMPFS | 875 | #ifdef CONFIG_DEVTMPFS |
871 | extern int devtmpfs_create_node(struct device *dev); | 876 | extern int devtmpfs_create_node(struct device *dev); |
872 | extern int devtmpfs_delete_node(struct device *dev); | 877 | extern int devtmpfs_delete_node(struct device *dev); |