From: Axel Lin Date: Tue, 24 Aug 2010 23:37:53 +0000 (-0700) Subject: Input: pxa27x_keypad - remove input_free_device() in pxa27x_keypad_remove() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=288933c02b440621d9c8e7bb5f232cfb7bdef7df;p=linux-beck.git Input: pxa27x_keypad - remove input_free_device() in pxa27x_keypad_remove() No need to call input_free_device() after input_unregister_device(). Signed-off-by: Axel Lin Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/keyboard/pxa27x_keypad.c b/drivers/input/keyboard/pxa27x_keypad.c index 0e53b3bc39af..f32404f99189 100644 --- a/drivers/input/keyboard/pxa27x_keypad.c +++ b/drivers/input/keyboard/pxa27x_keypad.c @@ -567,8 +567,6 @@ static int __devexit pxa27x_keypad_remove(struct platform_device *pdev) clk_put(keypad->clk); input_unregister_device(keypad->input_dev); - input_free_device(keypad->input_dev); - iounmap(keypad->mmio_base); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);