clk: shmobile: check for failure
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Tue, 23 Feb 2016 09:30:03 +0000 (15:00 +0530)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 24 Feb 2016 23:01:42 +0000 (15:01 -0800)
commitc7f23180c6025fc93d1b743a49a97c4bb0c26f19
treecf4030ae99b3c1c803cdddb9ee5d5231de98f9d6
parent706d5c73e3367e2b866a211d1bff2cedab772146
clk: shmobile: check for failure

We were not checking the return from devm_add_action() which can fail.
Start using the helper 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.mukherjee@codethink.co.uk>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/shmobile/renesas-cpg-mssr.c