UPSTREAM: phy: rockchip-usb: fix clock get-put mismatch
authorHeiko Stuebner <heiko@sntech.de>
Thu, 19 Nov 2015 21:22:22 +0000 (22:22 +0100)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 25 Feb 2016 08:10:00 +0000 (16:10 +0800)
commit5caeb6eca84ec87c831b8d4dec2564f6350bcfe9
treea154510cb4d064c78066458ae496edd85befc904
parent9e87280e0db89cece5ad2ce743221b1789dfd42c
UPSTREAM: 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>
(cherry picked from commit 75d390fecf9e69eebca7f15de40d761e33fcfd7b)

Change-Id: I976d5a49448febdb7da5b5c35455c708bfc83899
drivers/phy/phy-rockchip-usb.c