]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: iop32x: read N2100 power key using gpiolib
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 9 Sep 2013 12:53:02 +0000 (14:53 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 20 Sep 2013 21:04:13 +0000 (23:04 +0200)
commit7f0ab1c9b81a7c503c2881f34ed6e3204554ae06
tree61efa3cbc92c0535deed9f9c6ceaaeb1a2c836c9
parentc5891eb47b47b2169cd49f2f9db65d4544df4696
ARM: iop32x: read N2100 power key using gpiolib

Refrain from using the custom gpio_line_get() to read the power
key on the N2100, use the gpiolib function gpio_get() instead.
Also request the line in the GPIOs initicall, and move the poll
timer setup to that inicall so the gpio chip is available before
we request this GPIO and start to poll it.

Cc: Lennert Buytenhek <kernel@wantstofly.org>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Mikael Pettersson <mikpe@it.uu.se>
Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-iop32x/n2100.c