summary refs log tree commit diff
path: root/drivers/watchdog/tqmx86_wdt.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2019-04-10 09:27:42 -0700
committerWim Van Sebroeck <wim@linux-watchdog.org>2019-05-05 21:02:31 +0200
commitedad75280506036a947a6e180db2b2d350658eb8 (patch)
treea35f836480fd099bde1e71f4c79dfcfc987679c9 /drivers/watchdog/tqmx86_wdt.c
parent0a48f239bfce525f4b7de0952aadce89ac2c2689 (diff)
downloadlinux-edad75280506036a947a6e180db2b2d350658eb8.tar.gz
watchdog: tegra_wdt: Use watchdog_stop_on_unregister and other improvements
Use watchdog_stop_on_unregister() in probe instead of calling
tegra_wdt_stop() in the remove function. Also introduce local variable
'struct device *dev' and use it instead of dereferencing it repeatedly.
Finally, drop the now empty remove function.

The conversion was done automatically with coccinelle using the
following semantic patches. The semantic patches and the scripts
used to generate this commit log are available at
https://github.com/groeck/coccinelle-patches

Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Jonathan Hunter <jonathanh@nvidia.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'drivers/watchdog/tqmx86_wdt.c')
0 files changed, 0 insertions, 0 deletions