Message ID | 20170518163804.14123-9-jbrunet@baylibre.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 842BC601C8 for <patchwork-linux-amlogic@patchwork.kernel.org>; Thu, 18 May 2017 16:38:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 73236285EC for <patchwork-linux-amlogic@patchwork.kernel.org>; Thu, 18 May 2017 16:38:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6812328812; Thu, 18 May 2017 16:38:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AB840285EC for <patchwork-linux-amlogic@patchwork.kernel.org>; Thu, 18 May 2017 16:38:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=JyI2ptYgO5fhG86jwU/ChMKEAwmCfALLm/GJmQbuoyE=; b=G2qnT2PlN4jz/6w8mO+mOEUGEv QFIW9lVk7oVvHmTPF9ODHV046msuR8hvGePvW9n+86phJwL5J5ZIXYTHby06x0HgZQ0Md/NeQ2l6b 4FKbCwY9aAXDNJG91Pqsg8OO/FhuMXu3shxr+n3yPHucgSrvOWFMsxV2u0iPbFzBI2G3x22RT5gbf reHPyy5G+sdS2bdveNHFGy6UQiNi0a5YcGm2Cr8amjcAOQJTEuPfydW+HOZrShQaYhKE3GTgxBOcx JT06WtVWKObxpl0J/2AqgwmH+KqmgQQVbyxyoRkOve35JeNSf6rQY2MwPfz7auivOsK4YfooDGKX2 ozFHLw+Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dBORr-0003Ti-65; Thu, 18 May 2017 16:38:47 +0000 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dBORf-0003G2-Lu for linux-amlogic@lists.infradead.org; Thu, 18 May 2017 16:38:38 +0000 Received: by mail-wm0-x22d.google.com with SMTP id 70so53064911wmq.1 for <linux-amlogic@lists.infradead.org>; Thu, 18 May 2017 09:38:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LlMRbrnWiWKicHxvlk5a96sLbi/+F+VZNeGO0/XHEd4=; b=g710mRUNhet/dq6tzUB+ZaOYi7bOvYBLSgX7aTNyak4X3ZQPRhaSA+7k4yDVph8NGf y9RSnHI5uVf/a0SQiYEMeP4zIxCKi+nam8MDj6UEzT/34joi9A66s6mditSzU7nWo3h7 YSB8XnmjZrDF/PiDcU+IOirhj9BwrcdT+sza8+2Bq+YFcYVgUYlUnUoXr464J6mfoEmp lf/UOJr5Iv2KChti4F6ZzrRozv03Ez5A9QIz3h7U6Oj5p4psC685OwP9F6aFfGwBCYAi 0+DnXOV5Ec+xuXq3TwD7DbNg5uMOO64WbLX1jSLqPn9R4aWLlD6AYWvfCUrK06CxEy9E QBGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=LlMRbrnWiWKicHxvlk5a96sLbi/+F+VZNeGO0/XHEd4=; b=mQONTUgpoOatBDYaGRc3j5XsfqS21Wr+DUzenwbfYXUAENwxDPvg/LT4lxyEYjmNYg 5Wo8fi73j+zCITJxlBKwCPnhXdyCL1AvT5i88KB+c0VgUau1Vhk0MkJPhlSgupw9NWFq xr6tYmszom7uJOVDnB5BoNkNqnUlvcGYZhy0U8kRtYiZfYE4cpk8tsM+F0/u1xPiacLY a+y6PDkZbioblctQdl3/GT8qpJcOVh1xqax72fxBssv7G0eior+1GameQPA4+r8+sbQ6 R8mWGXzW2yTZvmN9tm+pZL4wrO8XV5SqdhPrlxyijJBTAZL0jHv1qqK3NgWBSsqW1pxt 684Q== X-Gm-Message-State: AODbwcCUY6rVikDSQM9mqANiPYIwYlzGCMbGcpwUocyqnTf0zrdj+YyS +hSZLheEiy0eCIkm X-Received: by 10.28.191.89 with SMTP id p86mr3408196wmf.27.1495125494753; Thu, 18 May 2017 09:38:14 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id 4sm7357655wrv.33.2017.05.18.09.38.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 May 2017 09:38:14 -0700 (PDT) From: Jerome Brunet <jbrunet@baylibre.com> To: Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@codeaurora.org>, Kevin Hilman <khilman@baylibre.com> Subject: [PATCH 08/10] clk: fix incorrect usage of ENOSYS Date: Thu, 18 May 2017 18:38:02 +0200 Message-Id: <20170518163804.14123-9-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170518163804.14123-1-jbrunet@baylibre.com> References: <20170518163804.14123-1-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170518_093835_982961_E841F652 X-CRM114-Status: GOOD ( 10.69 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-amlogic.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-amlogic/> List-Post: <mailto:linux-amlogic@lists.infradead.org> List-Help: <mailto:linux-amlogic-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=subscribe> Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, Jerome Brunet <jbrunet@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" <linux-amlogic-bounces@lists.infradead.org> Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index e60d86d7c082..5980080a86c0 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -2004,7 +2004,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)
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(-)