[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1282646840.2567.1.camel@phoenix>
Date: Tue, 24 Aug 2010 18:47:20 +0800
From: Axel Lin <axel.lin@...il.com>
To: linux-kernel <linux-kernel@...r.kernel.org>
Cc: Dmitry Torokhov <dmitry.torokhov@...il.com>,
Rodolfo Giometti <giometti@...ux.it>
Subject: [PATCH] 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 <axel.lin@...il.com>
---
drivers/input/keyboard/pxa27x_keypad.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/input/keyboard/pxa27x_keypad.c b/drivers/input/keyboard/pxa27x_keypad.c
index 0e53b3b..f32404f 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);
--
1.7.0.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists