diff mbox

Input: s3c2410_ts - fix s3c2410ts_probe error path

Message ID 1283415916.19272.1.camel@mola (mailing list archive)
State Accepted
Commit ec1496b39576a3374e5461caac17b83b3275dbb7
Headers show

Commit Message

axel lin Sept. 2, 2010, 8:25 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/input/touchscreen/s3c2410_ts.c b/drivers/input/touchscreen/s3c2410_ts.c
index 6085d12..8feb7f3 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: