]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: wm831x_wdt: use devm_gpio_request_one()
authorJingoo Han <jg1.han@samsung.com>
Mon, 29 Apr 2013 09:31:20 +0000 (18:31 +0900)
committerWim Van Sebroeck <wim@iguana.be>
Thu, 11 Jul 2013 19:05:02 +0000 (21:05 +0200)
commit880b38cf17217b865eb6be70ccc29c14b62b28d1
tree6095e61e2162dd3073da533f7db3f79487a80353
parent037eaf14d0b51a7c47c95bd9fa20f4d3486d1c09
watchdog: wm831x_wdt: use devm_gpio_request_one()

Use devm_gpio_request_one() to make cleanup paths simpler.
Also, GPIOF_DIR_OUT | GPIOF_INIT_LOW is replaced with
GPIOF_OUT_INIT_LOW.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/wm831x_wdt.c