clk: Ignore error and NULL pointers passed to clk_{unprepare, disable}()
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 26 Mar 2014 23:06:37 +0000 (16:06 -0700)
committerMike Turquette <mturquette@linaro.org>
Wed, 30 Apr 2014 18:51:50 +0000 (11:51 -0700)
commit63589e92c2d975cc63222e5bd4a9a1fa2a1187ac
treec534ea7df24e67a08b94f86cf99e8ce437c7f9af
parent8f2c2db132cf5f4ffb4b9702ddb7e6bc5a343814
clk: Ignore error and NULL pointers passed to clk_{unprepare, disable}()

This simplifies error paths in drivers that use optional clocks
by allowing the NULL or error pointer to be passed
unconditionally.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk.c