diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-11-21 22:27:09 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-11-21 22:32:13 -0800 |
commit | ebcc019926269e7e123d55ec92ff00c2688ca343 (patch) | |
tree | 600e90eb395a9846d3bc02b630eaed2b58907206 | |
parent | 0e86eb29def648664c2c0fa605f5b5bad84247cb (diff) | |
download | blackbird-op-linux-ebcc019926269e7e123d55ec92ff00c2688ca343.tar.gz blackbird-op-linux-ebcc019926269e7e123d55ec92ff00c2688ca343.zip |
Input: ams_delta_serio - fix wrong kfree in ams_delta_serio_exit
serio_unregister_port() will call put_device() to free the memory.
Thus remove kfree(ams_delta_serio) after
serio_unregister_port(ams_delta_serio).
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
-rw-r--r-- | drivers/input/serio/ams_delta_serio.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/serio/ams_delta_serio.c b/drivers/input/serio/ams_delta_serio.c index 8f1770e1e08b..ebe955325677 100644 --- a/drivers/input/serio/ams_delta_serio.c +++ b/drivers/input/serio/ams_delta_serio.c @@ -172,6 +172,5 @@ static void __exit ams_delta_serio_exit(void) free_irq(OMAP_GPIO_IRQ(AMS_DELTA_GPIO_PIN_KEYBRD_CLK), 0); gpio_free(AMS_DELTA_GPIO_PIN_KEYBRD_CLK); gpio_free(AMS_DELTA_GPIO_PIN_KEYBRD_DATA); - kfree(ams_delta_serio); } module_exit(ams_delta_serio_exit); |