phy: rockchip: naneng-usb2: fix a NULL vs IS_ERR() check

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Ie495b234a68972c2bdaa07d105c13f7052f0d0d8
This commit is contained in:
William Wu
2022-03-28 20:24:45 +08:00
committed by Tao Huang
parent 5f2da9e8bc
commit 3092561a61

View File

@@ -354,7 +354,7 @@ rockchip_usb2phy_clk480m_register(struct rockchip_usb2phy *rphy)
/* optional override of the clockname */
of_property_read_string(node, "clock-output-names", &init.name);
if (refclk) {
if (!IS_ERR(refclk)) {
clk_name = __clk_get_name(refclk);
init.parent_names = &clk_name;
init.num_parents = 1;