[PATCHv2 1/2] ads7846: OMAP3: Removal of warnings backtrace in bootup

Felipe Balbi balbi at ti.com
Thu Feb 3 06:09:34 EST 2011


Hi,

On Thu, Feb 03, 2011 at 04:30:29PM +0530, Poddar, Sourav wrote:
>  I used -1 because conditional check done in probe ads7846_probe function
>  used this value.
> 
>   err_free_gpio:
>         if (ts->gpio_pendown != -1)
>                 gpio_free(ts->gpio_pendown);

you can actually change that (maybe on a later patch) to gpio_is_valid()

-- 
balbi



More information about the linux-arm-kernel mailing list