greybus: arche-apb: Don't use gpio after failing to request it
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 11 Jan 2016 05:59:14 +0000 (11:29 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 11 Jan 2016 23:58:01 +0000 (15:58 -0800)
commita7a794ec540c442999598cf16605ba7962aa3861
tree635a2459d45a8e59f1c403cf15422183a56cc6c0
parentdb0cff554a612715701a04143df595cc87737d55
greybus: arche-apb: Don't use gpio after failing to request it

If devm_gpio_request() returns an error, we shouldn't try to set the
direction of the same gpio.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/arche-apb-ctrl.c