Skip to contentSkip to conversation

Input: s3c2410_ts - fix s3c2410ts_probe error path

PATCH Applied Axel Lin 2 participants 2 messages Sep 2, 2010

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 Input: s3c2410_ts - fix s3c2410ts_probe error path

Use input_free_device() to free devices that have not been registered.

---
 drivers/input/touchscreen/s3c2410_ts.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/input/touchscreen/s3c2410_ts.c +1 -1
index 6085d12..8feb7f3 100644
@@ -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:
Signature · 1 line
1.7.2
maintainer Applied
#1 lore raw
Quoted 3 lines · Axel Lin

Use input_free_device() to free devices that have not been registered.

Applied, thanks Axel.

Quoted 22 lines
---
 drivers/input/touchscreen/s3c2410_ts.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/input/touchscreen/s3c2410_ts.c +1 -1
index 6085d12..8feb7f3 100644
@@ -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:
Signature · 1 line
1.7.2
Signature · 1 line
Dmitry