]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: bcm63xx: Don't check clk_free
authorSean Anderson <seanga2@gmail.com>
Sat, 15 Jan 2022 22:25:00 +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-4-seanga2@gmail.com
drivers/net/bcm6348-eth.c
drivers/net/bcm6368-eth.c

index aad7b612134959cccac24c83f0f2608d3e5a78fe..06e0dd74a5bf8ada5a4d5567e19a555600705aef 100644 (file)
@@ -461,11 +461,7 @@ static int bcm6348_eth_probe(struct udevice *dev)
                        return ret;
                }
 
-               ret = clk_free(&clk);
-               if (ret < 0) {
-                       pr_err("%s: error freeing clock %d\n", __func__, i);
-                       return ret;
-               }
+               clk_free(&clk);
        }
 
        /* try to perform resets */
index 29abe7fc96987ac5040688ac385d7a1b5e8294e5..c2a8b9f05765ac18621ca5642ec77115441478cd 100644 (file)
@@ -546,11 +546,7 @@ static int bcm6368_eth_probe(struct udevice *dev)
                        return ret;
                }
 
-               ret = clk_free(&clk);
-               if (ret < 0) {
-                       pr_err("%s: error freeing clock %d\n", __func__, i);
-                       return ret;
-               }
+               clk_free(&clk);
        }
 
        /* try to perform resets */