Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2392877rwb; Sat, 8 Oct 2022 07:08:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5+jN55Asv4gE7+PID18w2NayVnzdyoziS7Gp5juouo7l/ycUmY29et3kkyeMRuE7o7on7X X-Received: by 2002:a17:907:2ce8:b0:78d:49a8:4f54 with SMTP id hz8-20020a1709072ce800b0078d49a84f54mr7765276ejc.577.1665238101497; Sat, 08 Oct 2022 07:08:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665238101; cv=none; d=google.com; s=arc-20160816; b=aqN54uNrkH7m2+bx8GgSWeT9sE4NXHRZ278Dm1KQVJkyti1CB/++F5g95KEzUH0fO2 y5SsaXUw9gjtFuNRKK5PGiryvDYBSzbTN97+1GmtaDSpARq2ULcmUEAO7vC/2eJ/aOR/ BDOWfD5f3ghHTa573isyK1igzqc6q6tEZYnK7j2nBNcwoWk1B2qh+JEMX1CfYURuZTYj idSAJiNOdXElDY0Jj2/8qbdNFbdVvAoSDmrq7dgmdOPgVCPKxkLjrPOdAVnVxfaKrmTD HuoHGxSM2X/Bbv8iOon5kZFr6LPsvpSJ02z2lIoYIjNeMWR0wzL0YEmuAJoleV1/54xJ iBiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=0psW7oBSoBO0ietgbeLpLevIWjlHLlQZjNJxxxRQxII=; b=crfhMZevO2ZJdb1peI2G5308us68dr0TuSOg639els8jDnd8maxmPaC3SQPjYQsuE+ ayUgwwacesmiKK7iLn3ezs8Twb4w2BPia03DlaBY00v2AZqSArFi9a9VgbymXh0bzth0 RsCDAV1PZJXbXuQnBF547SZxh0wG7aqk/cRQR+sR7NWXZc3VDQL96igd2qvAO3/M/vn9 tcqyKOE/P3160AsnKmWVuNPitRdl9Pi0rh8QejcTasZIGLsqnpvzGTI4rxeGNrE8oDjT VIT/F8P+uALn1ldMinQZm5g+P+ibg8jPppK7Q2MYIFMFWbt9YVDZuGu++4CEQCerHPhl YmfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=S+P6QkFt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q8-20020a056402518800b0043d15f43ab2si4316178edd.580.2022.10.08.07.07.53; Sat, 08 Oct 2022 07:08:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=S+P6QkFt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229564AbiJHM5n (ORCPT + 99 others); Sat, 8 Oct 2022 08:57:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbiJHM5m (ORCPT ); Sat, 8 Oct 2022 08:57:42 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 809E24F383; Sat, 8 Oct 2022 05:57:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1665233855; bh=s+2+2kycVD9oyxcdU/CavIImGGRGVwDZHztfoj8Vdes=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=S+P6QkFtEtGR/I6BUlypr84qpccLaw6XNLi91ooKExguq1dKpjAnIL811mH1iafSn IR4Z958MhMmrMYFkj6f0/bfQtRntyfAjRPTrYLXMe4q3uDGnm5DTOZO1L4HL23IU7y DnMXFRZ67va38yYViA3v6y4etal2BW2wBcfgp2wU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.144.139]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MNKm0-1oWccP05He-00OquB; Sat, 08 Oct 2022 14:57:35 +0200 Message-ID: <061577e4-418a-62f5-0d96-f66c9e53ae27@gmx.de> Date: Sat, 8 Oct 2022 14:57:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH] video: fbdev: mb862xx: Replace NO_IRQ by 0 Content-Language: en-US To: Christophe Leroy Cc: linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org References: <58bf3cab7a6a7797f109ea40490cf5520c4b565d.1665034339.git.christophe.leroy@csgroup.eu> From: Helge Deller In-Reply-To: <58bf3cab7a6a7797f109ea40490cf5520c4b565d.1665034339.git.christophe.leroy@csgroup.eu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:FH56TXrZlbSdrpLmwtbkT9cBWXgZNBLcTpb5BJh9gv7c5tUsMtZ hbV9GzMN1OW5oK2Wc77JFgdv9GXYH/BrxrbrJB01JE9CLQjIg4jj3FI9LWNR8VOn1jEJajd KSwU4O4u1MsHM+6bv1+qxDF9M86gDSL9gs3BuduL0f3ff/0qqkxBR486zIalt2EPwuUDxBg 9Gz+Bomaa1SYf9Spj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1+Fx+FzAd vEDX/WemziWuPGsyP9IrHp0hTk+9YN7m3jVT2h0UhekpNkrhRZoYNdv3dzbmuPjVZOZj7j/Hv VZ2UUXS0EHbECsgPgkqT3fiAy96eCEfK4IEzFUJbggFRbfCfjQggSmPzcMgmZWcEHTXIatK4p GTqJePg0PxkJdEcRHKXDfzShvWNPEifUXzbxuj/vkYSedZ/IUiRQFFQb9XZsxyrvKo4GUSVsr /dRRSkzOxATs0jt7cMNfUrP5wZkDnRFz+ksa3hZtfwhTsjZOjsXJkXNWJZDalXshX0/+ZGkph 5IbrY0CLr3x25mxJfP4vPPbswjp6iguOBXF4WyFYyB0TJGHVKtf7BRUgmDBZyG3Zgxy4xZmZ+ twOLBLVSGgQS0YwhVcozWRyprAgoEV6fZnN4iGQRz6viBBli7/t43q4z2jt+5IFLqx8w6gC9P yYxJGolit1ksaj2bhwGOGRUUoLXBpTqgHDVzGEOsNLkSjG0EpXNuYTNabkTtcrxBNVpWGQ0jP 4DToTQhK36J12rm7N/jSrdT55+feVvK7F2lL/3BVkkpYS X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/6/22 07:33, Christophe Leroy wrote: > NO_IRQ is used to check the return of irq_of_parse_and_map(). > > On some architecture NO_IRQ is 0, on other architectures it is -1. > > irq_of_parse_and_map() returns 0 on error, independent of NO_IRQ. > > So use 0 instead of using NO_IRQ. > > Signed-off-by: Christophe Leroy applied. Thanks! Helge > --- > drivers/video/fbdev/mb862xx/mb862xxfbdrv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c b/drivers/video/= fbdev/mb862xx/mb862xxfbdrv.c > index a7508f5be343..3f605d2d8f0c 100644 > --- a/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c > +++ b/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c > @@ -692,7 +692,7 @@ static int of_platform_mb862xx_probe(struct platform= _device *ofdev) > par->dev =3D dev; > > par->irq =3D irq_of_parse_and_map(np, 0); > - if (par->irq =3D=3D NO_IRQ) { > + if (!par->irq) { > dev_err(dev, "failed to map irq\n"); > ret =3D -ENODEV; > goto fbrel;