Automatic clock disabling on clk_put()
From: Stephen Boyd <hidden>
Date: 2015-05-13 19:45:24
Also in:
linux-clk, lkml
From: Stephen Boyd <hidden>
Date: 2015-05-13 19:45:24
Also in:
linux-clk, lkml
On 05/12/15 23:45, Uwe Kleine-K?nig wrote:
quoted
that hard to call clk_disable_unprepare() on a clock at the end of an error path? Maybe you could add a devm_clk_get_prepare_enable() that does what you want and then call clk_disable_unprepare on the exit path?You mean clk_disable_unprepare is called in the same function that calls clk_put I assume such that you don't have to do anything in the exit path.
Yes that's what I mean. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project