9
0
Fork 0

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>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2013-01-26 15:40:29 +01:00 committed by Sascha Hauer
parent 2089b1e8bd
commit c559eb612f
1 changed files with 1 additions and 1 deletions

View File

@ -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);