summaryrefslogtreecommitdiff
path: root/drivers/input/keyboard/nomadik-ske-keypad.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/keyboard/nomadik-ske-keypad.c')
-rw-r--r--drivers/input/keyboard/nomadik-ske-keypad.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/input/keyboard/nomadik-ske-keypad.c b/drivers/input/keyboard/nomadik-ske-keypad.c
index 022b474e7ec..5bc91685f90 100644
--- a/drivers/input/keyboard/nomadik-ske-keypad.c
+++ b/drivers/input/keyboard/nomadik-ske-keypad.c
@@ -741,7 +741,7 @@ out_regulator_get:
out_freekeypad:
kfree(keypad);
out_freeclk:
- clk_put(keypad->clk);
+ clk_put(clk);
out_freeioremap:
iounmap(reg_base);
out_freerequest_memregions:
@@ -776,9 +776,6 @@ static int __devexit ske_keypad_remove(struct platform_device *pdev)
for (i = 0; i < keypad->board->krow; i++)
free_irq(keypad->gpio_input_irq[i], keypad);
- for (i = 0; i < SKE_KPD_MAX_ROWS; i++)
- gpio_free(keypad->ske_rows[i]);
-
free_irq(keypad->irq, keypad);
regulator_put(keypad->regulator);