summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/s3c2410_ts.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-09-02 10:26:31 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2010-09-02 20:11:52 -0700
commitec1496b39576a3374e5461caac17b83b3275dbb7 (patch)
tree5942deae147837fea830fce9d71b7cc087ec74a9 /drivers/input/touchscreen/s3c2410_ts.c
parentbba5394ad3bd23fff6987fc8bc3aaf9d12433c63 (diff)
downloadlwn-ec1496b39576a3374e5461caac17b83b3275dbb7.tar.gz
lwn-ec1496b39576a3374e5461caac17b83b3275dbb7.zip
Input: s3c2410_ts - fix s3c2410ts_probe error path
Use input_free_device() to free devices that have not been registered. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/touchscreen/s3c2410_ts.c')
-rw-r--r--drivers/input/touchscreen/s3c2410_ts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/s3c2410_ts.c b/drivers/input/touchscreen/s3c2410_ts.c
index 6085d12fd561..8feb7f3c8be1 100644
--- a/drivers/input/touchscreen/s3c2410_ts.c
+++ b/drivers/input/touchscreen/s3c2410_ts.c
@@ -350,7 +350,7 @@ static int __devinit s3c2410ts_probe(struct platform_device *pdev)
err_tcirq:
free_irq(ts.irq_tc, ts.input);
err_inputdev:
- input_unregister_device(ts.input);
+ input_free_device(ts.input);
err_iomap:
iounmap(ts.io);
err_clk: