Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp911999ybs; Mon, 25 May 2020 02:19:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycKdvnR8R9UZ70U0mxg+DtCCEsarQCxfUxmSNa+h4faKo66OanhlBhUYJFJyhPUjvMFfDh X-Received: by 2002:a17:906:f891:: with SMTP id lg17mr17415382ejb.405.1590398387046; Mon, 25 May 2020 02:19:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590398387; cv=none; d=google.com; s=arc-20160816; b=N2plHfFq4F4X6jKr4Oy7d1lGaY6FjpPiY+aBFMrPlONZGrnb3ffExSars/QYO6xQgQ cyvgZSLXD2OvGsJMSHTteRM585WD2xDgUvKkaRRw1vErfMbZy7wMLjwuidcTqZSWCv2t 51dfBEfvsqIx1vpQ/4/LNdWwC7/XQlABAd+/FA7KPf8zPd0b02nHVw4VwGbPyuvKdADQ JEeUT64esvnGaugEHHhQZWRRFEUE8xTQ+33IBtNnFawyJhtLnyJHSe0VMw5KYZKRv+Pr UW8UzjKoOpRajwuroiKVR96NRlqaVye2hdmNyZNExaKh75FGlPFixUfJ50DPPMnsD4ad chpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=UPKAWDXzbYpZcHZzE/jvh4sEsCXtgHO9Rviklrj4c2Y=; b=IkuAI0cAq+XyThgc+uaPwVGwiRcHNyRg6rCRhhCa6/wWq+Ehz74rHs7mz5t3gmudjn /OfxPKT2LtlAtSsYkNF7kBGjpWM8sYTkgxq/oruMsBrwzzDsvapTUG33vViFoE1COnWq CDXAHCrU9ywlIexMBC7PwJp6EUsOg68hITYJSTJF1pBzZU819u4nSspJqpOv0/zELCha JDZFvklRbnfy6KfHVu/PX1cCNoDNTHN86jjrblh2Hf3tlYN455OhO7g+RXElFAPpBS7T 1k/Im4rBg9tiGXBsCHsMZogJionm8f8ozKU6IdH4WnUSWK5v7G/zrI0x/iZnBJHfebYQ 6tgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=h5iYImgh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o11si8789245ejb.746.2020.05.25.02.19.24; Mon, 25 May 2020 02:19:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=h5iYImgh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389452AbgEYJRP (ORCPT + 99 others); Mon, 25 May 2020 05:17:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389438AbgEYJRJ (ORCPT ); Mon, 25 May 2020 05:17:09 -0400 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1BECC061A0E for ; Mon, 25 May 2020 02:17:09 -0700 (PDT) Received: by mail-qk1-x741.google.com with SMTP id q8so468225qkm.12 for ; Mon, 25 May 2020 02:17:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=UPKAWDXzbYpZcHZzE/jvh4sEsCXtgHO9Rviklrj4c2Y=; b=h5iYImghCJhux6GT4d2kO7zNAoMA8fEcSSkSURRXarw2tjaLULyyfuxuVY/52g3yz3 6kODCAB7qd44fe7EVjnkJU3QcnefChDGILeJaBR5sIW1L+egXZ2DLr3hDAzLUtLQunwG eqrRDW/LuS29vX5ageDRPa2c1Q+vCrhIvkwv1bCPNoLEwhFuSZ7BlyChZ3sLdPgj6AsV f6185DEYuUvH2iZYAvOotSKaTIPDe5z0godcIwSgpxDxjypOqtTjTWq6RvDxhSEe9Wpz me/D89KNUT8EGL6Cm9qTKEdA8QRqR+5vNgWnR26pw4j2W5iKOzr8y7mulkdGIvYx2ViZ No9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=UPKAWDXzbYpZcHZzE/jvh4sEsCXtgHO9Rviklrj4c2Y=; b=YTQjLDh1QHSYrUOa2GA2vIvoClrql3fStVxfrzLbftNj0HMrhWlV33fr/e+cFpnJx7 W5moqtxnOmrGy2P9Ukk0xCe8WTgGWBXP13QXnEdwHGEBguKg/HWdwwnUAT5wWrdR/Szt /ioZ09u1Zml+JZFyd/AXD6PQ7laUHeEeSU8dGExHPYjOBgIUm3KzvVLHx0RtOH+Cvf26 kDYS+OadnAHyY15NnNPv7+4PjywNqtux/tCuFVdJ3y6Khlmofpcaz8wFMcAHEG5bvwPI upKy2FR0DkvymR4teysqorV1XKc1ULa900LMtjbWM2KP9JzbJDAPuAOvTxmJQNTXG6XV 59AA== X-Gm-Message-State: AOAM533fNrZPXItfANCWRMciOlffWupegcpnfiyLihYRboQ50qUgU2Lc Ezbb82h14UI9Q5yHZSRXlpqASlRdtqKNiDvhRx/pOg== X-Received: by 2002:a37:dd6:: with SMTP id 205mr3484622qkn.323.1590398228936; Mon, 25 May 2020 02:17:08 -0700 (PDT) MIME-Version: 1.0 References: <1590120740-22912-1-git-send-email-yangtiezhu@loongson.cn> In-Reply-To: <1590120740-22912-1-git-send-email-yangtiezhu@loongson.cn> From: Bartosz Golaszewski Date: Mon, 25 May 2020 11:16:58 +0200 Message-ID: Subject: Re: [PATCH 1/3] gpio: bcm-kona: Fix return value of bcm_kona_gpio_probe() To: Tiezhu Yang Cc: Linus Walleij , Ray Jui , Robert Jarzmik , bcm-kernel-feedback-list@broadcom.com, linux-gpio , LKML , Xuefeng Li Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pt., 22 maj 2020 o 06:12 Tiezhu Yang napisa=C5=82(= a): > > When call function devm_platform_ioremap_resource(), we should use IS_ERR= () > to check the return value and return PTR_ERR() if failed. > > Fixes: 72d8cb715477 ("drivers: gpio: bcm-kona: use devm_platform_ioremap_= resource()") > Signed-off-by: Tiezhu Yang > --- > drivers/gpio/gpio-bcm-kona.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpio/gpio-bcm-kona.c b/drivers/gpio/gpio-bcm-kona.c > index baee8c3..cf3687a 100644 > --- a/drivers/gpio/gpio-bcm-kona.c > +++ b/drivers/gpio/gpio-bcm-kona.c > @@ -625,7 +625,7 @@ static int bcm_kona_gpio_probe(struct platform_device= *pdev) > > kona_gpio->reg_base =3D devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(kona_gpio->reg_base)) { > - ret =3D -ENXIO; > + ret =3D PTR_ERR(kona_gpio->reg_base); > goto err_irq_domain; > } > > -- > 2.1.0 > I fixed the commit message, since this patch addresses the error code propagation, not the checking itself. Applied for fixes. Bartosz