[PATCH 2/7] dma: bcm6348: Don't check clk_free

Sean Anderson seanga2 at gmail.com
Sat Jan 15 23:24:59 CET 2022


This function always succeeds, so don't check its return value.

Signed-off-by: Sean Anderson <seanga2 at gmail.com>
---

 drivers/dma/bcm6348-iudma.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/dma/bcm6348-iudma.c b/drivers/dma/bcm6348-iudma.c
index c04aa55cb4..4fc650272d 100644
--- a/drivers/dma/bcm6348-iudma.c
+++ b/drivers/dma/bcm6348-iudma.c
@@ -596,11 +596,7 @@ static int bcm6348_iudma_probe(struct udevice *dev)
 			return ret;
 		}
 
-		ret = clk_free(&clk);
-		if (ret < 0) {
-			pr_err("error freeing clock %d\n", i);
-			return ret;
-		}
+		clk_free(&clk);
 	}
 
 	/* try to perform resets */
-- 
2.34.1



More information about the U-Boot mailing list