All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Input: s3c2410_ts - fix s3c2410ts_probe error path
@ 2010-09-02  8:25 Axel Lin
  2010-09-02 15:54 ` Dmitry Torokhov
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2010-09-02  8:25 UTC (permalink / raw)
  To: linux-kernel
  Cc: Dmitry Torokhov, Ben Dooks, Arnaud Patard, Simtec Electronics,
	linux-input

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

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/input/touchscreen/s3c2410_ts.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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:
-- 
1.7.2




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Input: s3c2410_ts - fix s3c2410ts_probe error path
  2010-09-02  8:25 [PATCH] Input: s3c2410_ts - fix s3c2410ts_probe error path Axel Lin
@ 2010-09-02 15:54 ` Dmitry Torokhov
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2010-09-02 15:54 UTC (permalink / raw)
  To: Axel Lin
  Cc: linux-kernel, Ben Dooks, Arnaud Patard, Simtec Electronics, linux-input

On Thu, Sep 02, 2010 at 04:25:16PM +0800, Axel Lin wrote:
> Use input_free_device() to free devices that have not been registered.
> 
> Signed-off-by: Axel Lin <axel.lin@gmail.com>

Applied, thanks Axel.

> ---
>  drivers/input/touchscreen/s3c2410_ts.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> 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:
> -- 
> 1.7.2
> 
> 
> 

-- 
Dmitry

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-02 15:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-02  8:25 [PATCH] Input: s3c2410_ts - fix s3c2410ts_probe error path Axel Lin
2010-09-02 15:54 ` Dmitry Torokhov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.