diff options
author | Sean Anderson <seanga2@gmail.com> | 2023-12-16 14:38:42 -0500 |
---|---|---|
committer | Sean Anderson <seanga2@gmail.com> | 2024-01-29 22:35:02 -0500 |
commit | c9309f40a6831b1ac5cd0a7227b5c3717d34c812 (patch) | |
tree | 2c331967b5ad82ae7ba565e4234dbfb5d8e3e048 /drivers/cpu/riscv_cpu.c | |
parent | 82719d3f409f93b2ce85145547c0bb91624a2c63 (diff) |
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/cpu/riscv_cpu.c')
-rw-r--r-- | drivers/cpu/riscv_cpu.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/cpu/riscv_cpu.c b/drivers/cpu/riscv_cpu.c index 034b9b49c05..a9b253719f7 100644 --- a/drivers/cpu/riscv_cpu.c +++ b/drivers/cpu/riscv_cpu.c @@ -45,7 +45,6 @@ static int riscv_cpu_get_info(const struct udevice *dev, struct cpu_info *info) ret = clk_get_rate(&clk); if (!IS_ERR_VALUE(ret)) info->cpu_freq = ret; - clk_free(&clk); } if (!info->cpu_freq) @@ -145,7 +144,6 @@ static int riscv_cpu_probe(struct udevice *dev) return 0; ret = clk_enable(&clk); - clk_free(&clk); if (ret == -ENOSYS || ret == -ENOTSUPP) return 0; else |