From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A72BEC433FE for ; Tue, 18 Oct 2022 09:04:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231265AbiJRJEZ (ORCPT ); Tue, 18 Oct 2022 05:04:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231238AbiJRJET (ORCPT ); Tue, 18 Oct 2022 05:04:19 -0400 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17810A98FC for ; Tue, 18 Oct 2022 02:04:16 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id CED5C20011; Tue, 18 Oct 2022 09:04:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1666083855; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WrHoAtqBli7nGuNr8Qrgbh7E8H5z2878N2B7xjfksr4=; b=c22FApHUxGj2kff0fgpC8s7ZDRnAF97UAyVi5iPOrx9HoTCu9cKkNSmdOig9q0Gf7NWh1M Ddz190UeyKPF9XL9U2LpJL31oS2pY2aWxwWHFTr9RedkM6IM9VrPoO9oX1vRGyTGPpf25x OOYQZb3tCim2s36d6YNdm9U+Vq23fROWw8xxz8L1u0yWYYBoHu2CEPBnX4C7jssAp+Lu4w GSNWCLcIbhJR8KseoEhQNoK1b3lBqXaGvCXKlJpGbxAat+ThoKNdFQ92khxkARIdggQdZx pKzuTqp9jpCeiJ41U+whpP/bz/Yn58eRcqwB/Xvnivs4l8QLhfZe8QdY7QStOQ== From: Miquel Raynal To: Christophe Leroy , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Cc: linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org Subject: Re: [PATCH] mtd: rawnand: mpc5121: Replace NO_IRQ by 0 Date: Tue, 18 Oct 2022 11:04:13 +0200 Message-Id: <20221018090413.466295-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <4e3ca3e0077ea124ea210c312e6e620f0f9e8bca.1665034065.git.christophe.leroy@csgroup.eu> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'3fea699cb2d6c8c47289b16500590630f507d8fd' Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2022-10-06 at 05:29:12 UTC, 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 to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Miquel