Skip to content

Commit

Permalink
Input: ams_delta_serio - fix wrong kfree in ams_delta_serio_exit
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
  • Loading branch information
AxelLin authored and dtor committed Nov 22, 2010
1 parent 0e86eb2 commit ebcc019
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/input/serio/ams_delta_serio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit ebcc019

Please sign in to comment.