Re: [PATCH 1/4] staging: typec: fusb302: do not free gpio from managed resource

2017-05-11 Thread Guenter Roeck
On Thu, May 11, 2017 at 03:20:20PM +0100, Rui Miguel Silva wrote: > When allocating a gpio using the managed resource devm_, we can avoid freeing > it > manually. But even if we did it we should use devm_gpio_free. > > So, just remove the free of the gpio in the error path. > > Signed-off-by:

[PATCH 1/4] staging: typec: fusb302: do not free gpio from managed resource

2017-05-11 Thread Rui Miguel Silva
When allocating a gpio using the managed resource devm_, we can avoid freeing it manually. But even if we did it we should use devm_gpio_free. So, just remove the free of the gpio in the error path. Signed-off-by: Rui Miguel Silva --- drivers/staging/typec/fusb302/fusb302.c |