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

Felipe Balbi
2011-02-03T11:09:34Z

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