Message ID | 20170321183330.26722-8-jbrunet@baylibre.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index ec6d57e97bac..377d5301348b 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -1926,7 +1926,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)) - return -ENOSYS; + return -EPERM; /* check that we are allowed to re-parent if the clock is in use */ if ((core->flags & CLK_SET_PARENT_GATE) && core->prepare_count)
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. Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> --- drivers/clk/clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)