summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2013-01-26 15:40:29 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-01-26 22:23:20 +0100
commitc559eb612f8979fa2a3e741ee01eb87b92f435df (patch)
tree8e7153798fa857fa3d53a538ad35f3de44e153b1 /drivers/input
parent2089b1e8bd88f8ca1eebe4e4bb3e2c57b771c860 (diff)
downloadbarebox-c559eb612f8979fa2a3e741ee01eb87b92f435df.tar.gz
barebox-c559eb612f8979fa2a3e741ee01eb87b92f435df.tar.xz
gpio_keys: fix loop on buttons for request and configuration
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/gpio_keys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/gpio_keys.c b/drivers/input/gpio_keys.c
index 6f3c912924..543ad1a470 100644
--- a/drivers/input/gpio_keys.c
+++ b/drivers/input/gpio_keys.c
@@ -79,7 +79,7 @@ static int __init gpio_keys_probe(struct device_d *dev)
pdata->recv_fifo = kfifo_alloc(pdata->fifo_size);
for (i = 0; i < pdata->nbuttons; i++) {
- gpio = pdata->buttons->gpio;
+ gpio = pdata->buttons[i].gpio;
ret = gpio_request(gpio, "gpio_keys");
if (ret) {
pr_err("gpio_keys: (%d) can not be requested\n", gpio);