greybus: arche-apb: Do cleanup within apb_ctrl_init_seq() for error cases
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 11 Jan 2016 05:59:15 +0000 (11:29 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 11 Jan 2016 23:58:01 +0000 (15:58 -0800)
commitd258432fb2fbf1a5a4910dbc31aba99d04801268
tree90dfb1eab214ba465913004e7630916331f68422
parenta7a794ec540c442999598cf16605ba7962aa3861
greybus: arche-apb: Do cleanup within apb_ctrl_init_seq() for error cases

Relying on apb_ctrl_cleanup() to do the cleanup for errors that occurred
within apb_ctrl_init_seq() isn't a very clean idea. Handle that
separately within apb_ctrl_init_seq().

This will clean apb_ctrl_cleanup() in later patches.

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