diff options
author | Kever Yang <kever.yang@rock-chips.com> | 2019-10-16 17:13:31 +0800 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2019-11-17 17:22:53 +0800 |
commit | e76943ca6fe690bce5386105a8b671db12c6a736 (patch) | |
tree | bd2e178256c92314f8a9e631a6e86ab0e5f00f18 /drivers/usb | |
parent | deebba82d95a0cb43f02629651b66d539b0bf0cb (diff) | |
download | u-boot-e76943ca6fe690bce5386105a8b671db12c6a736.zip u-boot-e76943ca6fe690bce5386105a8b671db12c6a736.tar.gz u-boot-e76943ca6fe690bce5386105a8b671db12c6a736.tar.bz2 |
rockchip: usb: Migrate to use ofnode
Migrate to use ofnode_* instead of fdt_* so that we may able to use live
dt for usb udc driver.
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/phy/rockchip_usb2_phy.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/phy/rockchip_usb2_phy.c b/drivers/usb/phy/rockchip_usb2_phy.c index 16e8999..69e408b 100644 --- a/drivers/usb/phy/rockchip_usb2_phy.c +++ b/drivers/usb/phy/rockchip_usb2_phy.c @@ -5,7 +5,6 @@ #include <common.h> #include <asm/io.h> -#include <linux/libfdt.h> #include "../gadget/dwc2_udc_otg_priv.h" @@ -71,8 +70,8 @@ void otg_phy_init(struct dwc2_udc *dev) for (i = 0; i < ARRAY_SIZE(rockchip_usb2_phy_dt_ids); i++) { of_id = &rockchip_usb2_phy_dt_ids[i]; - if (fdt_node_check_compatible(gd->fdt_blob, pdata->phy_of_node, - of_id->compatible) == 0) { + if (ofnode_device_is_compatible(pdata->phy_of_node, + of_id->compatible)){ phy_cfg = (struct rockchip_usb2_phy_cfg *)of_id->data; break; } |