diff options
author | Neil Armstrong <narmstrong@baylibre.com> | 2016-05-27 17:33:54 +0200 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2016-07-17 20:52:40 +0200 |
commit | 83fbae5a148cc1cd53e5be1a28edb3b6701b7af2 (patch) | |
tree | 70ee9bebd8aa953e3508980ed0227beed9805e21 /include/linux/watchdog.h | |
parent | 47ef4ad2684d380dd6d596140fb79395115c3950 (diff) | |
download | lwn-83fbae5a148cc1cd53e5be1a28edb3b6701b7af2.tar.gz lwn-83fbae5a148cc1cd53e5be1a28edb3b6701b7af2.zip |
watchdog: Add a device managed API for watchdog_register_device()
This helps in reducing code in .remove callbacks and sometimes
dropping .remove callbacks entirely.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/watchdog.h b/include/linux/watchdog.h index 51732d6c9555..6b75e38b683f 100644 --- a/include/linux/watchdog.h +++ b/include/linux/watchdog.h @@ -180,4 +180,7 @@ extern int watchdog_init_timeout(struct watchdog_device *wdd, extern int watchdog_register_device(struct watchdog_device *); extern void watchdog_unregister_device(struct watchdog_device *); +/* devres register variant */ +int devm_watchdog_register_device(struct device *dev, struct watchdog_device *); + #endif /* ifndef _LINUX_WATCHDOG_H */ |