greybus: arche-platform: Export GPIOs after populating APBs
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 11 Jan 2016 05:59:04 +0000 (11:29 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 11 Jan 2016 23:58:01 +0000 (15:58 -0800)
commit8adf71d1b43aa1c449d22dd8e6f6c29957872a7f
tree9b5172b89bfe7f0b966a04ef259282f3c3366fcc
parent73658f2a285dd8b53160355e619fcb59db3bb98a
greybus: arche-platform: Export GPIOs after populating APBs

Populating APBs operation can potentially fail and it would be better if
we export the GPIOs towards then end of the routine, so that we don't
need to unexport them on error cases.

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-platform.c