diff options
| author | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-01-16 16:21:04 -0500 |
|---|---|---|
| committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-01-16 16:21:04 -0500 |
| commit | f652f6c5b7cfdf139f4155d78f397e99ae1c4acc (patch) | |
| tree | 71c6344688bf56ea6aaf18c586ab69ff4f077ade /include/linux/device.h | |
| parent | 140e3008e7fe1526cbb12f8f07dbc273ac713b75 (diff) | |
| parent | c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5 (diff) | |
Merge branch 'master' of /pub/scm/linux/kernel/git/jejb/scsi-post-merge-2.6 into for-linus
Diffstat (limited to 'include/linux/device.h')
| -rw-r--r-- | include/linux/device.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index dd4895313468..1bf5cf0b4513 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
| @@ -30,9 +30,8 @@ struct device_private; | |||
| 30 | struct device_driver; | 30 | struct device_driver; |
| 31 | struct driver_private; | 31 | struct driver_private; |
| 32 | struct class; | 32 | struct class; |
| 33 | struct class_private; | 33 | struct subsys_private; |
| 34 | struct bus_type; | 34 | struct bus_type; |
| 35 | struct bus_type_private; | ||
| 36 | struct device_node; | 35 | struct device_node; |
| 37 | 36 | ||
| 38 | struct bus_attribute { | 37 | struct bus_attribute { |
| @@ -65,7 +64,7 @@ struct bus_type { | |||
| 65 | 64 | ||
| 66 | const struct dev_pm_ops *pm; | 65 | const struct dev_pm_ops *pm; |
| 67 | 66 | ||
| 68 | struct bus_type_private *p; | 67 | struct subsys_private *p; |
| 69 | }; | 68 | }; |
| 70 | 69 | ||
| 71 | extern int __must_check bus_register(struct bus_type *bus); | 70 | extern int __must_check bus_register(struct bus_type *bus); |
| @@ -197,6 +196,7 @@ struct class { | |||
| 197 | 196 | ||
| 198 | struct class_attribute *class_attrs; | 197 | struct class_attribute *class_attrs; |
| 199 | struct device_attribute *dev_attrs; | 198 | struct device_attribute *dev_attrs; |
| 199 | struct bin_attribute *dev_bin_attrs; | ||
| 200 | struct kobject *dev_kobj; | 200 | struct kobject *dev_kobj; |
| 201 | 201 | ||
| 202 | int (*dev_uevent)(struct device *dev, struct kobj_uevent_env *env); | 202 | int (*dev_uevent)(struct device *dev, struct kobj_uevent_env *env); |
| @@ -213,7 +213,7 @@ struct class { | |||
| 213 | 213 | ||
| 214 | const struct dev_pm_ops *pm; | 214 | const struct dev_pm_ops *pm; |
| 215 | 215 | ||
| 216 | struct class_private *p; | 216 | struct subsys_private *p; |
| 217 | }; | 217 | }; |
| 218 | 218 | ||
| 219 | struct class_dev_iter { | 219 | struct class_dev_iter { |
| @@ -508,13 +508,13 @@ static inline int device_is_registered(struct device *dev) | |||
| 508 | 508 | ||
| 509 | static inline void device_enable_async_suspend(struct device *dev) | 509 | static inline void device_enable_async_suspend(struct device *dev) |
| 510 | { | 510 | { |
| 511 | if (dev->power.status == DPM_ON) | 511 | if (!dev->power.in_suspend) |
| 512 | dev->power.async_suspend = true; | 512 | dev->power.async_suspend = true; |
| 513 | } | 513 | } |
| 514 | 514 | ||
| 515 | static inline void device_disable_async_suspend(struct device *dev) | 515 | static inline void device_disable_async_suspend(struct device *dev) |
| 516 | { | 516 | { |
| 517 | if (dev->power.status == DPM_ON) | 517 | if (!dev->power.in_suspend) |
| 518 | dev->power.async_suspend = false; | 518 | dev->power.async_suspend = false; |
| 519 | } | 519 | } |
| 520 | 520 | ||
