Stopping watchdog in watchdog driver remove functions
From: Guenter Roeck
Date: Sat Dec 31 2016 - 14:44:41 EST
I noticed that several watchdog drivers stop the watchdog in trhe driver remove function.
A non-exhaustive list of drivers doing that is
Since a watchdog has to be closed for its driver to be removable, one situation
where a watchdog is still running on unload is where the watchdog was opened but
not closed properly (eg by killing the watchdog application, or if the 'nowayout'
flag is set).
Given that, does it even make sense to stop the watchdog in the remove function ?
Should it even be permitted ?