staging: typec: fusb302: do not free gpio from managed resource
authorRui Miguel Silva <rmfrfs@gmail.com>
Fri, 12 May 2017 20:16:13 +0000 (21:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 May 2017 09:37:26 +0000 (11:37 +0200)
commit2c8e3f44f708a89a2c73a25a134af8c23998a2bc
tree182bcf796cf8c75c6035c3a45965c5d698f9198a
parent050161ea3268ad72d276bc2c327e9654048a82b2
staging: typec: fusb302: do not free gpio from managed resource

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 <rmfrfs@gmail.com>
Acked-by: Yueyao Zhu <yueyao.zhu@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/typec/fusb302/fusb302.c