phy: rockchip-dp: fix unexpected reset 24m clock
authorWeiYong Bi <bivvy.bi@rock-chips.com>
Mon, 27 Mar 2017 23:51:03 +0000 (07:51 +0800)
committerJianqun Xu <jay.xu@rock-chips.com>
Tue, 28 Mar 2017 01:53:31 +0000 (09:53 +0800)
commit1cba569fb5490254d67a5dda4886bc394aefa740
tree7b9eb0a5a32be84950d3bda1ce03cd3eb48b3906
parent54be7ce59bf2114a90d2cc215efae026af9c6437
phy: rockchip-dp: fix unexpected reset 24m clock

Reset_control_assert/reset_control_deassert will not check whether
the incoming pointer is NULL, so we need to check it before using it.

Change-Id: Ib2aeeefcb2d5d7429031bc21bf7e3df1d897a6c9
Signed-off-by: WeiYong Bi <bivvy.bi@rock-chips.com>
drivers/phy/phy-rockchip-dp.c