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>
This commit is contained in:
Neil Armstrong 2016-05-27 17:33:54 +02:00 • committed by Wim Van Sebroeck
commit 83fbae5a14
3 changed files with 43 additions and 0 deletions