watchdog: rt2880_wdt: minor clean up
authorJohn Crispin <blogic@openwrt.org>
Thu, 16 Oct 2014 20:01:05 +0000 (22:01 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 17 Feb 2015 20:32:21 +0000 (21:32 +0100)
commita6f8f81ec77ba5e5f0b3249dfd3fc554ac5db117
tree4a6efc900239b2a1cea708a5dc3a3cd5ebfd74ad
parentb91b5be5ba92f2bc8018a900239cd07150639b5b
watchdog: rt2880_wdt: minor clean up

Replace device_reset() with devm_reset_control_get() + reset_control_deassert().
Make use of watchdog_init_timeout() instead of setting the timeout manually.

Signed-off-by: John Crispin <blogic@openwrt.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/rt2880_wdt.c