mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user