aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/mvebu/armada-37xx-periph.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-04-06 08:36:11 -0400
committerTom Rini <trini@konsulko.com>2021-04-06 08:36:11 -0400
commit779786dac366ab83161843a248a5c639af10e540 (patch)
tree3c0f2a6a4eb0e61fa26c6bfe24f36e6609f538e8 /drivers/clk/mvebu/armada-37xx-periph.c
parent472fd5a35af3308f97de0376a6c25f5368035557 (diff)
parentd4a1592a9908f4278f306ff9f11e63c010e05704 (diff)
downloadu-boot-779786dac366ab83161843a248a5c639af10e540.tar.gz
Merge tag 'dm-pull-6apr21' of https://source.denx.de/u-boot/custodians/u-boot-dm
ENOSYS clean-up Minor dtoc improvements Convert CONFIG_MISC_INIT_F to Kconfig Allow unit tests to run on any board pylibfdt build-rule fix
Diffstat (limited to 'drivers/clk/mvebu/armada-37xx-periph.c')
-rw-r--r--drivers/clk/mvebu/armada-37xx-periph.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/clk/mvebu/armada-37xx-periph.c b/drivers/clk/mvebu/armada-37xx-periph.c
index 0132fcb7e61..b0f47c33b3f 100644
--- a/drivers/clk/mvebu/armada-37xx-periph.c
+++ b/drivers/clk/mvebu/armada-37xx-periph.c
@@ -340,7 +340,7 @@ static int periph_clk_enable(struct clk *clk, int enable)
return -EINVAL;
if (!periph_clk->can_gate)
- return -ENOTSUPP;
+ return -EINVAL;
if (enable)
clrbits_le32(priv->reg + CLK_DIS, periph_clk->disable_bit);
@@ -408,7 +408,7 @@ static ulong armada_37xx_periph_clk_set_rate(struct clk *clk, ulong req_rate)
return old_rate;
if (!periph_clk->can_gate || !periph_clk->dividers)
- return -ENOTSUPP;
+ return -EINVAL;
parent_rate = get_parent_rate(priv, clk->id);
if (parent_rate == -EINVAL)
@@ -445,7 +445,7 @@ static int armada_37xx_periph_clk_set_parent(struct clk *clk,
return -EINVAL;
if (!periph_clk->can_mux || !periph_clk->can_gate)
- return -ENOTSUPP;
+ return -EINVAL;
ret = clk_get_by_index(clk->dev, 0, &check_parent);
if (ret < 0)