Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp460809rwb; Wed, 5 Oct 2022 22:56:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM711D9LZ3Yl2NEfsCTuTUShFm1B/t6DrVd45uoByKmLx6JCYEu4n4mjEXGdSpOEAzFcxDSj X-Received: by 2002:a17:907:75ee:b0:77b:c559:2bcc with SMTP id jz14-20020a17090775ee00b0077bc5592bccmr2387456ejc.537.1665035773122; Wed, 05 Oct 2022 22:56:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665035773; cv=none; d=google.com; s=arc-20160816; b=qnqdnHBdSy96Nzsc9IboREnYZlCPk8zbU0NAGB2qjs4nmG2345MYzcsEw7WJ01lbj/ /pmmZ+7YPOmwVpdGRYh9B/sE3c3SJH4d4wnKUm+XaD4Xx7cw7nGK3DjmznXvP2eOjq/j fDGz4JdAJK9ob46tKsxNSzDEtWfdklIB/vsMWDRg+LUQa2Gp2jXBLV72knSCTnJCrXY2 aoQU3suBb0+t4fPaGRCDYPDPjNpGGVaTO4Lj8WKg6q8nKT912eyHo/6EmJcc6wAKZ7QX bi4miVHvdYcBEspO0U+lko3tWayaXSxZJ4RkSH8RPKKHnZXTqqAkT9PLntPKGP2LaHLP Cgaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=WCUEs0sAUTQIya+Wn5xDXLBAupkDxAE2ScMIbmzYOkU=; b=toUrXOOHGCCFMQ7D4j1oDIyV6ysN9krn7uyUmdZw0EuBJmcO/BSrRrhCP2ReZsWFxq LjwPplpFv59DePaOQldt4lR/EWQqqS51jstnFa/tt59Yh1C061BgJGL5QeRHJWE6T3d2 bjRqTvfzkPGfUyib/o9+j3V15yw4ZDHdd/fxaS3xwePJY26+ElSiVwmd2EHHlAwYM6Wp fwVOMkkdkpt1oSi8ee+KrI9yMNdsVf0O5oXLSOypmm2IGd6T/aVuBJ+m1HIehK+SLIkB 2qcgfbWEw2g1gYVzYQ8lIbtrLi2LAyqFG6u3uUqNG9164+j97voft+oPp9CgyylhI7vq 9pXA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr13-20020a170907720d00b00779a69067afsi16656700ejc.830.2022.10.05.22.55.47; Wed, 05 Oct 2022 22:56:13 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230147AbiJFFdn (ORCPT + 99 others); Thu, 6 Oct 2022 01:33:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230162AbiJFFdk (ORCPT ); Thu, 6 Oct 2022 01:33:40 -0400 Received: from pegase2.c-s.fr (pegase2.c-s.fr [93.17.235.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9C6A8A1E8; Wed, 5 Oct 2022 22:33:39 -0700 (PDT) Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4Mjg8f3LxDz9srM; Thu, 6 Oct 2022 07:33:38 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FcCf-JPVJsZG; Thu, 6 Oct 2022 07:33:38 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4Mjg8f2WLzz9srL; Thu, 6 Oct 2022 07:33:38 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 47D268B765; Thu, 6 Oct 2022 07:33:38 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id n-KpVnNpT6jZ; Thu, 6 Oct 2022 07:33:38 +0200 (CEST) Received: from PO20335.IDSI0.si.c-s.fr (unknown [192.168.232.234]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 2A94F8B763; Thu, 6 Oct 2022 07:33:38 +0200 (CEST) Received: from PO20335.IDSI0.si.c-s.fr (localhost [127.0.0.1]) by PO20335.IDSI0.si.c-s.fr (8.17.1/8.16.1) with ESMTPS id 2965XNRc212701 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 6 Oct 2022 07:33:23 +0200 Received: (from chleroy@localhost) by PO20335.IDSI0.si.c-s.fr (8.17.1/8.17.1/Submit) id 2965XNgs212672; Thu, 6 Oct 2022 07:33:23 +0200 X-Authentication-Warning: PO20335.IDSI0.si.c-s.fr: chleroy set sender to christophe.leroy@csgroup.eu using -f From: Christophe Leroy To: Helge Deller Cc: Christophe Leroy , linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH] video: fbdev: mb862xx: Replace NO_IRQ by 0 Date: Thu, 6 Oct 2022 07:33:17 +0200 Message-Id: <58bf3cab7a6a7797f109ea40490cf5520c4b565d.1665034339.git.christophe.leroy@csgroup.eu> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1665034396; l=946; s=20211009; h=from:subject:message-id; bh=5rrnv9tXfKElM58dckx8PfsDwOBKrbY7NKno08H6cjA=; b=OK1tf77KEbziItN8h1cB68jly42cwL3MPYQqo3UrdTiKSLjRbeWZtYkpnbOg+ZMRHzaXTDM9eFze UyHMOdeQCm2nJRYP75OJFzzIQ5EQjzxHi27AX6LMawn2ucnwSOE0 X-Developer-Key: i=christophe.leroy@csgroup.eu; a=ed25519; pk=HIzTzUj91asvincQGOFx6+ZF5AoUuP9GdOtQChs7Mm0= Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 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 --- 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 = dev; par->irq = irq_of_parse_and_map(np, 0); - if (par->irq == NO_IRQ) { + if (!par->irq) { dev_err(dev, "failed to map irq\n"); ret = -ENODEV; goto fbrel; -- 2.37.1