mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-25 08:11:45 +00:00
32 lines
1 KiB
Diff
32 lines
1 KiB
Diff
From 71696c295bdbc1624d6204c01070518cba0451b5 Mon Sep 17 00:00:00 2001
|
|
From: Jerome Brunet <jbrunet@baylibre.com>
|
|
Date: Tue, 21 Mar 2017 16:03:55 +0100
|
|
Subject: [PATCH 54/79] 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.
|
|
|
|
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
|
|
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
|
---
|
|
drivers/clk/clk.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
|
|
index 8d57e13..5d54595 100644
|
|
--- a/drivers/clk/clk.c
|
|
+++ b/drivers/clk/clk.c
|
|
@@ -2032,7 +2032,7 @@ static int clk_core_set_parent_nolock(struct clk_core *core,
|
|
|
|
/* 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)
|
|
--
|
|
1.9.1
|
|
|