summaryrefslogtreecommitdiff
path: root/drivers/watchdog/meson_gxbb_wdt.c
diff options
context:
space:
mode:
authorSean Anderson <seanga2@gmail.com>2023-12-16 14:38:42 -0500
committerSean Anderson <seanga2@gmail.com>2024-01-29 22:35:02 -0500
commitc9309f40a6831b1ac5cd0a7227b5c3717d34c812 (patch)
tree2c331967b5ad82ae7ba565e4234dbfb5d8e3e048 /drivers/watchdog/meson_gxbb_wdt.c
parent82719d3f409f93b2ce85145547c0bb91624a2c63 (diff)
downloadu-boot-c9309f40a6831b1ac5cd0a7227b5c3717d34c812.tar.gz
u-boot-c9309f40a6831b1ac5cd0a7227b5c3717d34c812.tar.bz2
u-boot-c9309f40a6831b1ac5cd0a7227b5c3717d34c812.zip
treewide: Remove clk_free
This function is a no-op. Remove it. Signed-off-by: Sean Anderson <seanga2@gmail.com> Link: https://lore.kernel.org/r/20231216193843.2463779-3-seanga2@gmail.com
Diffstat (limited to 'drivers/watchdog/meson_gxbb_wdt.c')
-rw-r--r--drivers/watchdog/meson_gxbb_wdt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/watchdog/meson_gxbb_wdt.c b/drivers/watchdog/meson_gxbb_wdt.c
index 6ab005813f..01a35b3ab3 100644
--- a/drivers/watchdog/meson_gxbb_wdt.c
+++ b/drivers/watchdog/meson_gxbb_wdt.c
@@ -98,10 +98,8 @@ static int amlogic_wdt_probe(struct udevice *dev)
return ret;
ret = clk_enable(&clk);
- if (ret) {
- clk_free(&clk);
+ if (ret)
return ret;
- }
/* Setup with 1ms timebase */
writel(((clk_get_rate(&clk) / 1000) & GXBB_WDT_CTRL_DIV_MASK) |