watchdog: mtx1-wdt: request gpio before using it
commitbdb51c44cde3903ed22dcf9469be4afe9fa0b46d
authorFlorian Fainelli <florian@openwrt.org>
Wed, 15 Jun 2011 17:15:23 +0000 (15 19:15 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 9 Jul 2011 06:15:18 +0000 (8 23:15 -0700)
tree6afa3972e8c3a3c59e6429a4059a9efb95414731
parentcb9131e898a0f61df3877a109ff383afe04a90aa
watchdog: mtx1-wdt: request gpio before using it

commit 9b19d40aa3ebaf1078779da10555da2ab8512422 upstream.

Otherwise, the gpiolib autorequest feature will produce a WARN_ON():

WARNING: at drivers/gpio/gpiolib.c:101 0x8020ec6c()
autorequest GPIO-215
[...]

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/watchdog/mtx-1_wdt.c