summaryrefslogtreecommitdiff
path: root/drivers/clk/clk_sandbox.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-03-30 18:08:22 -0400
committerTom Rini <trini@konsulko.com>2022-03-30 18:14:33 -0400
commit23e354f82c04a1c070ca59907abc6b042761b0e7 (patch)
treefc73baee17217f3b8c2f116a868eaa190a1bb0a4 /drivers/clk/clk_sandbox.c
parentd2e5250be49fce4653689c41a5dc7e2d7e7ecf33 (diff)
parent682e73d23555afdd733c20810d282d9cc2bc0e0f (diff)
Merge tag 'clk-2022.04-next' of https://source.denx.de/u-boot/custodians/u-boot-clk into next
Clock patches for u-boot/next This is mostly cleanups/consolidations. clk_free is made to return void, and the CCF wrappers present in almost every CCF clock are consolidated. I would particularly like to have the latter upstream, since there are at least two series adding support for new CCF drivers (imx8mq and imxrt1170) which can benefit from these commits. I had to fix up the last commit since I missed an include for at91. CI: https://source.denx.de/u-boot/custodians/u-boot-clk/-/pipelines/11521
Diffstat (limited to 'drivers/clk/clk_sandbox.c')
-rw-r--r--drivers/clk/clk_sandbox.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/clk/clk_sandbox.c b/drivers/clk/clk_sandbox.c
index 57acf7d8553..636914db8ca 100644
--- a/drivers/clk/clk_sandbox.c
+++ b/drivers/clk/clk_sandbox.c
@@ -101,15 +101,15 @@ static int sandbox_clk_request(struct clk *clk)
return 0;
}
-static int sandbox_clk_free(struct clk *clk)
+static void sandbox_clk_free(struct clk *clk)
{
struct sandbox_clk_priv *priv = dev_get_priv(clk->dev);
if (clk->id >= SANDBOX_CLK_ID_COUNT)
- return -EINVAL;
+ return;
priv->requested[clk->id] = false;
- return 0;
+ return;
}
static struct clk_ops sandbox_clk_ops = {