]> git.karo-electronics.de Git - karo-tx-linux.git/commit
phy: rockchip-usb: fix clock get-put mismatch
authorHeiko Stuebner <heiko@sntech.de>
Thu, 19 Nov 2015 21:22:22 +0000 (22:22 +0100)
committerKishon Vijay Abraham I <kishon@ti.com>
Sun, 20 Dec 2015 09:51:38 +0000 (15:21 +0530)
commit75d390fecf9e69eebca7f15de40d761e33fcfd7b
treea278c7c5eaf44b53ef52568b9ce01ab04df7e1bb
parent30e9a0b2147c8405109ad98ae670829dd92e4516
phy: rockchip-usb: fix clock get-put mismatch

Currently the phy driver only gets the optional clock reference but
never puts it again, neither during error handling nor on remove.
Fix that by moving the clk_put to a devm-action that gets called at
the right time when all other devm actions are done.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-rockchip-usb.c