From patchwork Wed Sep 20 14:08:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9961511 Return-Path: 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 2A5B460234 for ; Wed, 20 Sep 2017 14:09:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B1B4290CC for ; Wed, 20 Sep 2017 14:09:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C8FD290E4; Wed, 20 Sep 2017 14:09:00 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED 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 A0485200F5 for ; Wed, 20 Sep 2017 14:08:59 +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: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:In-Reply-To: References:List-Owner; bh=y5zoVJGUjofGCmcXXQfHZiGsSrI+nL8/OmiF9vzRJXU=; b=JHa 1E4h4qNhhP32xGqEotSY8NUqM9tLaRMgH6Zodd8Rj+xKEH39aQcwVQS/bwgcJttp5hSVnHE1/0AfD 3WDHeImZ1Yrn5XILMWeHNBPiokMgWT34gL/BlK8PNlKvd5c8+vFhreRU04gRs3Hiv4nFzJUDWSoCq bMr/qeAqgwf5rSLAJjLP2AII/80lWlxnMZ4fRehoBStqiB09iTN0Bln7v+BLfhoB/XqywZMmgKm5g L2p5SUAdUyq9FEYiDnoAu500Frs157kHVznDVwZgjaWchoj8CM2chNAPp2WdIH2jXHhu8PUBXmDEl OLeLuj5sTwKcYVOaJ/A3o2kEeBydX9w==; 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 1dufgJ-0007VK-C6; Wed, 20 Sep 2017 14:08:51 +0000 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dufgC-0007OK-GJ for linux-amlogic@lists.infradead.org; Wed, 20 Sep 2017 14:08:50 +0000 Received: by mail-wm0-x22a.google.com with SMTP id r68so7569581wmg.3 for ; Wed, 20 Sep 2017 07:08:24 -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; bh=+GC517WGNoi1139+o0LSTVcVIng80pAS5TLSqxWnPvY=; b=napBNC6wY0JE6gh6Z978HQkXq9kyS3jTUSWL0C8ofXKKHl2UwUI/q7+Cvr2jrQkUbZ CY6ivMly+zijNQi3Cyx5VPmpHkCt1IzCJo7ew1Q63rkNX8gARAMvzM7Owq0otaOC8waY EPR+raiCW2CkWags9SZWshlfuDGfSchBcfjZzV0sSORVl6pfBEkbHKwyyAPsN4rHcyBf i/+g3Ms6Ovr70bDQmVWgE8PqmvIxn7+hBlj2BfrhNmNlmLG+v746p5nidU5CPsWi0ERS A3d9AdT+Ricrhrhjph7uuGIWbQSQUu5x9AwbAvfnZ1ssSHM5fmrfbl1ADszUwpNLQNWs V7xw== 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; bh=+GC517WGNoi1139+o0LSTVcVIng80pAS5TLSqxWnPvY=; b=XlKlxtC2G4bkX/idSJQqHeJx0ealZrjzAKsPBOAmyVjjwKecdHR+4QrSkkoLkLIf5x xoaLHUmzUWaTDopoFu+luxEckQe7l39LVr66loSbuuN16JwoFN0/Gus/hv3A5ZyXZSv8 wXCoGFvZD9i24wQUN7+kDSOWGEiREqP0p3hZ66I4tRmZuTEPXWi99c3eWBqrI/TYeY4A a9WL3+ggykbPBDRiTNF4ovXk4Wfg0bE//Ij96MuSvsvs5ExsWw0TUV6/wKaJ0GcPFTKY tclaCYWkf09PAbZPBDCSfLpqZNdCZMov35Ag3J6bbKi1UetaMXMpjIRNYdxf4rz6onDY Wpmg== X-Gm-Message-State: AHPjjUgttq4YooOMCAz3/jqvWaJG6BcdslUaS4c2x1NUK1hLT6dnohpc 8alBwGkDlUGTVcKXwBP3uY6nvQ== X-Google-Smtp-Source: AOwi7QBkBGn5KbmKuSAuoSY1C+wFtB1Dqd8ciRUyZe9l+H2t0AnhAWB3SgGDLJNmV139hkPMGAafbQ== X-Received: by 10.28.57.197 with SMTP id g188mr3743241wma.92.1505916502862; Wed, 20 Sep 2017 07:08:22 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id b89sm2034459wrd.42.2017.09.20.07.08.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Sep 2017 07:08:22 -0700 (PDT) From: Jerome Brunet To: Linus Walleij , Kevin Hilman , Carlo Caione Subject: [PATCH] pinctrl: meson: fix incorrect usage of ENOSYS Date: Wed, 20 Sep 2017 16:08:15 +0200 Message-Id: <20170920140815.20776-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.13.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170920_070844_710390_C5C7B629 X-CRM114-Status: UNSURE ( 9.45 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-gpio@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Jerome Brunet MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP ENOSYS is special and should only be used for incorrect syscall number. It is not the case here. let's use ENOTSUPP instead. Signed-off-by: Jerome Brunet --- drivers/pinctrl/meson/pinctrl-meson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/meson/pinctrl-meson.c b/drivers/pinctrl/meson/pinctrl-meson.c index c9cd54de0449..71bccb7acbf8 100644 --- a/drivers/pinctrl/meson/pinctrl-meson.c +++ b/drivers/pinctrl/meson/pinctrl-meson.c @@ -399,7 +399,7 @@ static int meson_pinconf_group_set(struct pinctrl_dev *pcdev, static int meson_pinconf_group_get(struct pinctrl_dev *pcdev, unsigned int group, unsigned long *config) { - return -ENOSYS; + return -ENOTSUPP; } static const struct pinconf_ops meson_pinconf_ops = {