Automatic clock disabling on clk_put()

Stephen Boyd sboyd at
Wed May 13 12:45:12 PDT 2015

On 05/12/15 23:45, Uwe Kleine-König wrote:
>> 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

More information about the linux-arm-kernel mailing list