Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93241
b: refs/heads/master
c: da3e4c8
h: refs/heads/master
i:
  93239: 5ad2e2f
v: v3
  • Loading branch information
David Brownell authored and Dmitry Torokhov committed Apr 15, 2008
1 parent 75cd63e commit 46a1bee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1164ec1ae43770db6ea5450c6cac0761b11d6d1d
refs/heads/master: da3e4c885e5ebbccc8181f53d8ae74c4c22d506f
7 changes: 5 additions & 2 deletions trunk/drivers/input/keyboard/omap-keypad.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,9 @@ static int __init omap_kp_probe(struct platform_device *pdev)
}
omap_set_gpio_direction(row_gpios[row_idx], 1);
}
} else {
col_idx = 0;
row_idx = 0;
}

setup_timer(&omap_kp->timer, omap_kp_timer, (unsigned long)omap_kp);
Expand Down Expand Up @@ -415,10 +418,10 @@ static int __init omap_kp_probe(struct platform_device *pdev)
err3:
device_remove_file(&pdev->dev, &dev_attr_enable);
err2:
for (i = row_idx-1; i >=0; i--)
for (i = row_idx - 1; i >=0; i--)
omap_free_gpio(row_gpios[i]);
err1:
for (i = col_idx-1; i >=0; i--)
for (i = col_idx - 1; i >=0; i--)
omap_free_gpio(col_gpios[i]);

kfree(omap_kp);
Expand Down

0 comments on commit 46a1bee

Please sign in to comment.