|
@@ -375,6 +375,7 @@ int subsys_virtual_register(struct bus_type *subsys,
|
|
|
* @suspend: Used to put the device to sleep mode, usually to a low power
|
|
|
* state.
|
|
|
* @resume: Used to bring the device from the sleep mode.
|
|
|
+ * @shutdown: Called at shut-down time to quiesce the device.
|
|
|
* @ns_type: Callbacks so sysfs can detemine namespaces.
|
|
|
* @namespace: Namespace of the device belongs to this class.
|
|
|
* @pm: The default device power management operations of this class.
|
|
@@ -403,6 +404,7 @@ struct class {
|
|
|
|
|
|
int (*suspend)(struct device *dev, pm_message_t state);
|
|
|
int (*resume)(struct device *dev);
|
|
|
+ int (*shutdown)(struct device *dev);
|
|
|
|
|
|
const struct kobj_ns_type_operations *ns_type;
|
|
|
const void *(*namespace)(struct device *dev);
|