clk: qcom: common: check for failure
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Wed, 23 Dec 2015 12:27:20 +0000 (17:57 +0530)
committerStephen Boyd <sboyd@codeaurora.org>
Tue, 9 Feb 2016 01:06:43 +0000 (17:06 -0800)
commit66f5ce2538e06dd6d628e37bbd38c79631274c9f
tree88a23286f66a0414bc35dc179fb33c38096271f6
parenta3499e9bf0feeea593a9daae855986c685561893
clk: qcom: common: check for failure

We were not checking the return from devm_add_action() which can fail.
Start using the helper and devm_add_action_or_reset() and return
directly as we know that the cleanup has been done by this helper.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/qcom/common.c