clk: Add devm_clk_{register,unregister}()
authorStephen Boyd <sboyd@codeaurora.org>
Mon, 24 Sep 2012 20:38:04 +0000 (13:38 -0700)
committerMike Turquette <mturquette@linaro.org>
Mon, 29 Oct 2012 18:12:46 +0000 (11:12 -0700)
commit46c8773a58010d31f228e148b8b774d94cc9810d
tree50bab56383102bfc34c38526c9c0183448180480
parent980f58a45e04b248e9dd01b0eba510a3384160db
clk: Add devm_clk_{register,unregister}()

Some clock drivers can be simplified if devres takes care of
unregistering any registered clocks along error paths. Introduce
devm_clk_register() so that clock drivers get unregistration for
free along with simplified error paths.

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