Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1293771ybi; Fri, 2 Aug 2019 12:49:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9jPtmiMxJhVUHRmycjLvGQAx7ddEiKWVkt/P24yQsL34SZ+AzeH+kAJnIi+aHMs/khlfT X-Received: by 2002:a17:90a:36e4:: with SMTP id t91mr5717043pjb.22.1564775339928; Fri, 02 Aug 2019 12:48:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564775339; cv=none; d=google.com; s=arc-20160816; b=AmBUMHc82901yBnghcDEeLrJRasM54cogh1jjlGRMIUj4RD9CDcoCX5AGRcDxcarQg o1g1d8DwS6chpAvejtKJS+Gk3et4SL+/DsR3y80meHhyVNvax9MsQV0aS9UB6f74B9JC zv+5kIXEt4nXtKuSOl/6sWBfI896qnkTkdnERJ5+3pS+zJkSrv4shilyourwEDN7Sk6t bqyjzF9sK1MXQxo5+IT9jYQXanVnMWbjNP7DvgrtbP4DWNaQ5n72FEwC0p+FG4yDVOJK VhnyOGx2cRHOF8FHsr54PqiFGt5cHgtNnhrDvJzbeWbvXWAC/ggs1f8GYEIhX/XEzpEI 42nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=MlfCa1PX0J8g20fUvPxFfRpkYetJ6igUWomi/a3D0G0=; b=0ozQdaqLamacSdhTagMX0fDWO6ihev8EjfdiCSJDbI6HwoyAGazNojfA0MmK5XTZ2E tBusvxbyLaIkDFNjihlXaSe8bI+Be3bh0nbRirHgWDhjorMkKER7zvoxMO+Pf78i4qXf w2Lf4r9ReAxD3XtIuJNhCaIymPDaqH6XRkK7p9Ew3BnosAxxShTvw7hb8fqCeX//Ui30 9u21A/nW+qh9jGCAjQtFfXeeb2+CxowUc7aPvbtLUV/nTPGllWP3q/WxHxWYYa3JRLjH EkbBMfiR5YldIAxQspXYDdfWPyY8lb2MjBAVwThGGHWbv5X0dlQ64jRoIfWEXzgIclUU KCVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g24si39365288pfi.119.2019.08.02.12.48.45; Fri, 02 Aug 2019 12:48:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407269AbfHBKEx convert rfc822-to-8bit (ORCPT + 99 others); Fri, 2 Aug 2019 06:04:53 -0400 Received: from skedge03.snt-world.com ([91.208.41.68]:58120 "EHLO skedge03.snt-world.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390781AbfHBKEN (ORCPT ); Fri, 2 Aug 2019 06:04:13 -0400 Received: from sntmail12r.snt-is.com (unknown [10.203.32.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by skedge03.snt-world.com (Postfix) with ESMTPS id 5D316603D2C; Fri, 2 Aug 2019 12:04:11 +0200 (CEST) Received: from sntmail12r.snt-is.com (10.203.32.182) by sntmail12r.snt-is.com (10.203.32.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 2 Aug 2019 12:04:10 +0200 Received: from sntmail12r.snt-is.com ([fe80::e551:8750:7bba:3305]) by sntmail12r.snt-is.com ([fe80::e551:8750:7bba:3305%3]) with mapi id 15.01.1713.004; Fri, 2 Aug 2019 12:04:10 +0200 From: Schrempf Frieder To: "u.kleine-koenig@pengutronix.de" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "linux-imx@nxp.com" , Greg Kroah-Hartman CC: "linux-arm-kernel@lists.infradead.org" , "geert+renesas@glider.be" , Schrempf Frieder , Jiri Slaby , "linux-serial@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH v3 3/4] serial: sh-sci: Don't check for mctrl_gpio_init() returning -ENOSYS Thread-Topic: [PATCH v3 3/4] serial: sh-sci: Don't check for mctrl_gpio_init() returning -ENOSYS Thread-Index: AQHVSRmhYdomcjxyRk6mFHbvvepk8Q== Date: Fri, 2 Aug 2019 10:04:10 +0000 Message-ID: <20190802100349.8659-3-frieder.schrempf@kontron.de> References: <20190802100349.8659-1-frieder.schrempf@kontron.de> In-Reply-To: <20190802100349.8659-1-frieder.schrempf@kontron.de> Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.17.1 x-originating-ip: [172.25.9.193] x-c2processedorg: 51b406b7-48a2-4d03-b652-521f56ac89f3 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-SnT-MailScanner-Information: Please contact the ISP for more information X-SnT-MailScanner-ID: 5D316603D2C.ACFB8 X-SnT-MailScanner: Not scanned: please contact your Internet E-Mail Service Provider for details X-SnT-MailScanner-SpamCheck: X-SnT-MailScanner-From: frieder.schrempf@kontron.de X-SnT-MailScanner-To: festevam@gmail.com, geert+renesas@glider.be, gregkh@linuxfoundation.org, jslaby@suse.com, kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, s.hauer@pengutronix.de, shawnguo@kernel.org, u.kleine-koenig@pengutronix.de X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Frieder Schrempf Now that the mctrl_gpio code returns NULL instead of ERR_PTR(-ENOSYS) if CONFIG_GPIOLIB is disabled, we can safely remove this check. Signed-off-by: Frieder Schrempf --- Changes in v3 ============= * Adjust the commit message and subject line Changes in v2 ============= * Move the sh_sci changes to a separate patch --- drivers/tty/serial/sh-sci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index d18c680aa64b..249325b65ee0 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -3287,7 +3287,7 @@ static int sci_probe_single(struct platform_device *dev, return ret; sciport->gpios = mctrl_gpio_init(&sciport->port, 0); - if (IS_ERR(sciport->gpios) && PTR_ERR(sciport->gpios) != -ENOSYS) + if (IS_ERR(sciport->gpios)) return PTR_ERR(sciport->gpios); if (sciport->has_rtscts) { -- 2.17.1