• Guenter Roeck's avatar
    watchdog: Introduce watchdog_stop_on_unregister helper · bb292ac1
    Guenter Roeck authored
    Many watchdog drivers explicitly stop the watchdog when unregistering it.
    While it is unclear if this is actually needed (the whatdog should not be
    running at that time if it can be stopped), introduce a helper to
    explicitly stop the watchdog in the watchdog core when unregistering it.
    This helps reducing driver code size while retaining functionality.
    Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
    bb292ac1
watchdog.h 7.78 KB