summaryrefslogtreecommitdiff
path: root/include/linux/watchdog.h
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2016-01-04 02:11:58 +0300
committerWim Van Sebroeck <wim@iguana.be>2016-01-11 23:53:59 +0300
commit0254e953537c92df3e7d0176f401a211e944fd61 (patch)
treeeee8c9b7645c2add9f49c71d39b0e31950ac7efb /include/linux/watchdog.h
parent2c2f3080de7341f58a5d0e8ea31cc66dd369b8f4 (diff)
downloadlinux-0254e953537c92df3e7d0176f401a211e944fd61.tar.xz
watchdog: Drop pointer to watchdog device from struct watchdog_device
The lifetime of the watchdog device pointer is different from the lifetime of its character device. Remove it entirely to avoid race conditions. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'include/linux/watchdog.h')
-rw-r--r--include/linux/watchdog.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/watchdog.h b/include/linux/watchdog.h
index 076df50ea0da..b585fa2507ee 100644
--- a/include/linux/watchdog.h
+++ b/include/linux/watchdog.h
@@ -53,7 +53,6 @@ struct watchdog_ops {
/** struct watchdog_device - The structure that defines a watchdog device
*
* @id: The watchdog's ID. (Allocated by watchdog_register_device)
- * @dev: The device for our watchdog
* @parent: The parent bus device
* @groups: List of sysfs attribute groups to create when creating the
* watchdog device.
@@ -82,7 +81,6 @@ struct watchdog_ops {
*/
struct watchdog_device {
int id;
- struct device *dev;
struct device *parent;
const struct attribute_group **groups;
const struct watchdog_info *info;