This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM365 PWM driver: missing clk_put, bug?

Hi,

while checking the davinci_pwm driver, I've noticed that during module init it calls "clk_get". If you check the implementation of this function, it uses "try_module_get()". But then in the same driver there is not call to "clk_put" that calls "module_put".

This means that each call to clk_get increments the reference count on the clock but then the count is never decreased because there is not call to clk_put.

Is this a bug?