Input: s3c2410_ts - fix s3c2410ts_probe error path
authorAxel Lin <axel.lin@gmail.com>
Thu, 2 Sep 2010 17:26:31 +0000 (10:26 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 3 Sep 2010 03:11:52 +0000 (20:11 -0700)
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>
drivers/input/touchscreen/s3c2410_ts.c

index 6085d12fd56196e0e47873bade9b4880ab5ca356..8feb7f3c8be17d19f40108d9ad3eddf4450ad309 100644 (file)
@@ -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: