diff options
Diffstat (limited to 'include/linux/device.h')
| -rw-r--r-- | include/linux/device.h | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 0059b99e1f25..477956990f5e 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -256,7 +256,9 @@ enum probe_type {   *		automatically.   * @pm:		Power management operations of the device which matched   *		this driver. - * @coredump:	Called through sysfs to initiate a device coredump. + * @coredump:	Called when sysfs entry is written to. The device driver + *		is expected to call the dev_coredump API resulting in a + *		uevent.   * @p:		Driver core's private data, no one other than the driver   *		core can touch this.   * @@ -288,7 +290,7 @@ struct device_driver {  	const struct attribute_group **groups;  	const struct dev_pm_ops *pm; -	int (*coredump) (struct device *dev); +	void (*coredump) (struct device *dev);  	struct driver_private *p;  };  |