diff options
author | Jerome Brunet <jbrunet@baylibre.com> | 2017-12-01 22:51:51 +0100 |
---|---|---|
committer | Michael Turquette <mturquette@baylibre.com> | 2017-12-19 16:17:33 -0800 |
commit | 56e7ceddbeb812a6f79f37523eb4e6e4620f4416 (patch) | |
tree | 0197b94890e7b4f3ccbac8696f1fb2cfcd6c2b87 | |
parent | 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 (diff) | |
download | op-kernel-dev-56e7ceddbeb812a6f79f37523eb4e6e4620f4416.zip op-kernel-dev-56e7ceddbeb812a6f79f37523eb4e6e4620f4416.tar.gz |
clk: fix incorrect usage of ENOSYS
ENOSYS is special and should only be used for incorrect syscall number.
It does not seem to be the case here.
Reported by checkpatch.pl while working on clock protection.
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Tested-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Michael Turquette <mturquette@baylibre.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/20171201215200.23523-2-jbrunet@baylibre.com
-rw-r--r-- | drivers/clk/clk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 647d056..5fe9e63 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -1888,7 +1888,7 @@ static int clk_core_set_parent(struct clk_core *core, struct clk_core *parent) /* verify ops for for multi-parent clks */ if ((core->num_parents > 1) && (!core->ops->set_parent)) { - ret = -ENOSYS; + ret = -EPERM; goto out; } |