diff options
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 5083bccae967..52a5f15a2223 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -691,6 +691,11 @@ struct device { | |||
691 | struct iommu_group *iommu_group; | 691 | struct iommu_group *iommu_group; |
692 | }; | 692 | }; |
693 | 693 | ||
694 | static inline struct device *kobj_to_dev(struct kobject *kobj) | ||
695 | { | ||
696 | return container_of(kobj, struct device, kobj); | ||
697 | } | ||
698 | |||
694 | /* Get the wakeup routines, which depend on struct device */ | 699 | /* Get the wakeup routines, which depend on struct device */ |
695 | #include <linux/pm_wakeup.h> | 700 | #include <linux/pm_wakeup.h> |
696 | 701 | ||