]> git.karo-electronics.de Git - karo-tx-linux.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>
Sun, 26 May 2013 13:07:23 +0000 (15:07 +0200)
commit6625a1c7d1aa46de587ff362685813715c8f53b1
tree06bfa7eee0755694d3430ec613ff0fbcb9cf5ca7
parent74a566bef9dad351f4fab6acc6e307f3551e7b07
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