summaryrefslogtreecommitdiffstats
path: root/Documentation/watchdog
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2016-01-03 18:11:58 -0500
committerWim Van Sebroeck <wim@iguana.be>2016-01-11 15:53:59 -0500
commit0254e953537c92df3e7d0176f401a211e944fd61 (patch)
treeeee8c9b7645c2add9f49c71d39b0e31950ac7efb /Documentation/watchdog
parent2c2f3080de7341f58a5d0e8ea31cc66dd369b8f4 (diff)
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 'Documentation/watchdog')
-rw-r--r--Documentation/watchdog/watchdog-kernel-api.txt2
1 files changed, 0 insertions, 2 deletions
diff --git a/Documentation/watchdog/watchdog-kernel-api.txt b/Documentation/watchdog/watchdog-kernel-api.txt
index 312f60009c3e..55120a055a14 100644
--- a/Documentation/watchdog/watchdog-kernel-api.txt
+++ b/Documentation/watchdog/watchdog-kernel-api.txt
@@ -44,7 +44,6 @@ The watchdog device structure looks like this:
44 44
45struct watchdog_device { 45struct watchdog_device {
46 int id; 46 int id;
47 struct device *dev;
48 struct device *parent; 47 struct device *parent;
49 const struct attribute_group **groups; 48 const struct attribute_group **groups;
50 const struct watchdog_info *info; 49 const struct watchdog_info *info;
@@ -66,7 +65,6 @@ It contains following fields:
66 /dev/watchdog0 cdev (dynamic major, minor 0) as well as the old 65 /dev/watchdog0 cdev (dynamic major, minor 0) as well as the old
67 /dev/watchdog miscdev. The id is set automatically when calling 66 /dev/watchdog miscdev. The id is set automatically when calling
68 watchdog_register_device. 67 watchdog_register_device.
69* dev: device under the watchdog class (created by watchdog_register_device).
70* parent: set this to the parent device (or NULL) before calling 68* parent: set this to the parent device (or NULL) before calling
71 watchdog_register_device. 69 watchdog_register_device.
72* groups: List of sysfs attribute groups to create when creating the watchdog 70* groups: List of sysfs attribute groups to create when creating the watchdog