]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: cdns3: cdns3-ti: Fix clk_get_by_name() to get the correct name
authorKishon Vijay Abraham I <kishon@ti.com>
Tue, 1 Jun 2021 10:56:16 +0000 (16:26 +0530)
committerMarek Vasut <marex@denx.de>
Tue, 8 Jun 2021 20:01:20 +0000 (22:01 +0200)
Kernel device tree got updated to use clock name as "ref" instead of
"usb2_refclk". Fix cdns3-ti.c to use the correct name.

Fixes: 70e167495ab2 ("arm: dts: k3-j721e: Sync Linux v5.11-rc6 dts into U-Boot")
Fixes: 6239cc8c4e84 ("arm: dts: k3-j7200: Sync Linux v5.11-rc6 dts into U-Boot")
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
drivers/usb/cdns3/cdns3-ti.c

index 7b205c565674a17b3390267b6a52a728af85b4ec..43171678ee1772ef35990f0968884b184afec6e1 100644 (file)
@@ -101,7 +101,7 @@ static int cdns_ti_probe(struct udevice *dev)
        if (!data->usbss)
                return -EINVAL;
 
-       ret = clk_get_by_name(dev, "usb2_refclk", &usb2_refclk);
+       ret = clk_get_by_name(dev, "ref", &usb2_refclk);
        if (ret) {
                dev_err(dev, "Failed to get usb2_refclk\n");
                return ret;