]> git.baikalelectronics.ru Git - uboot.git/commitdiff
phy: bcm63xx: Don't check clk_free
authorSean Anderson <seanga2@gmail.com>
Sat, 15 Jan 2022 22:25:01 +0000 (17:25 -0500)
committerSean Anderson <seanga2@gmail.com>
Wed, 30 Mar 2022 17:02:55 +0000 (13:02 -0400)
This function always succeeds, so don't check its return value.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Link: https://lore.kernel.org/r/20220115222504.617013-5-seanga2@gmail.com
drivers/phy/bcm6318-usbh-phy.c
drivers/phy/bcm6348-usbh-phy.c
drivers/phy/bcm6368-usbh-phy.c

index 60608a55bc289e2d6da271c5af7a2fd788aa6178..1c10853940ac75b792118af0f8c4f90c029f3fab 100644 (file)
@@ -98,9 +98,7 @@ static int bcm6318_usbh_probe(struct udevice *dev)
        if (ret < 0)
                return ret;
 
-       ret = clk_free(&clk);
-       if (ret < 0)
-               return ret;
+       clk_free(&clk);
 
        /* enable power domain */
        ret = power_domain_get(dev, &pwr_dom);
index 1b6b5ad177ef6cd1b691556f7f80f9a8ed48fdb5..ce6be3d7dab8ee34bb20cd77343daa7d4ae135e2 100644 (file)
@@ -62,9 +62,7 @@ static int bcm6348_usbh_probe(struct udevice *dev)
        if (ret < 0)
                return ret;
 
-       ret = clk_free(&clk);
-       if (ret < 0)
-               return ret;
+       clk_free(&clk);
 
        /* perform reset */
        ret = reset_get_by_index(dev, 0, &rst_ctl);
index 4d3a63faadad1935a9846274b6cdd0b837754106..d057f1f52e868313306b4a5337b6cde735bcf4e0 100644 (file)
@@ -137,9 +137,7 @@ static int bcm6368_usbh_probe(struct udevice *dev)
        if (ret < 0)
                return ret;
 
-       ret = clk_free(&clk);
-       if (ret < 0)
-               return ret;
+       clk_free(&clk);
 
 #if defined(CONFIG_POWER_DOMAIN)
        /* enable power domain */
@@ -176,9 +174,7 @@ static int bcm6368_usbh_probe(struct udevice *dev)
                if (ret < 0)
                        return ret;
 
-               ret = clk_free(&clk);
-               if (ret < 0)
-                       return ret;
+               clk_free(&clk);
        }
 
        mdelay(100);