Commit ec1496b3 authored by Axel Lin's avatar Axel Lin Committed by Dmitry Torokhov

Input: s3c2410_ts - fix s3c2410ts_probe error path

Use input_free_device() to free devices that have not been registered.
Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent bba5394a
...@@ -350,7 +350,7 @@ static int __devinit s3c2410ts_probe(struct platform_device *pdev) ...@@ -350,7 +350,7 @@ static int __devinit s3c2410ts_probe(struct platform_device *pdev)
err_tcirq: err_tcirq:
free_irq(ts.irq_tc, ts.input); free_irq(ts.irq_tc, ts.input);
err_inputdev: err_inputdev:
input_unregister_device(ts.input); input_free_device(ts.input);
err_iomap: err_iomap:
iounmap(ts.io); iounmap(ts.io);
err_clk: err_clk:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment