Re: [PATCH] Input: s3c2410_ts - fix s3c2410ts_probe error path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>

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
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux