Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp133390ybl; Tue, 3 Dec 2019 23:25:11 -0800 (PST) X-Google-Smtp-Source: APXvYqyOMVX88lXt4AG/q9SbldHhxkyfBDNeFeYJox67pnexfstmxLacje/V200XFybnIYlXXlcu X-Received: by 2002:a05:6830:22e2:: with SMTP id t2mr1512000otc.129.1575444311124; Tue, 03 Dec 2019 23:25:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575444311; cv=none; d=google.com; s=arc-20160816; b=oKg7zxqOTSQsN188YCEYt7tWp45nTLl0gSPFQWH3p919UF2H1eVuVVkbLlt/eM72+q DgdhBgGpe8ju3zS25xeg7mwuvDc0OvMJqN5lZVB48wrTxCaQIElPOgGda9k0yY44uNEU kCDxZEBzycs90ghPtJPTYF107ChIxnwaiXyLKkyXIkW63vD8StVlrwpTqvnzvEv8C0Er C3Wuw/loTeY07tp8gpofug4ugSfB1tAKzMZtFl7iZoFiCx60LUBwOKXBbI/3terXlB7W LD8oQGUH8mT+FC1xQOPf13SP25iEe18sMk9rjrJSu8q3/otVnYKly1kuo4jzQCbVceVz Mpbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=7TFiMbbFvajLc7saNEue2nVdIuYPAWzZ4CpDfJbXkEo=; b=UOuoYmqDVi9+NkW4o1832oIe0YTOr0uT1JorlLcozjf29hNw+m4wSgZnQDo/jhPAho G+TpGYFiq/p2Kkix+r89xZ/E84K4q+pId21GVuoC1y3aGh3wsYTQOpSU/SgilOhFwnmm i1EmfCTb9tj/rRdg6lDWUMPxX3T6rMDhgj+5xENcRo2b5YUbvF1k+2GFWM7b3rbvaiau mj0CdvBToloRl4MxgsOPcUyvJXjqZVG4b2bCdAXa8NHYhrv8fB4oB0D8/dyhXUqwKMw+ ESPLB/UtvuQJ5LTmMl87VI7gBOC15q9FXEIInSWGACspwfguebtzGmFhBNmH0bgwVBYP yQqQ== 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 k125si1217864oif.166.2019.12.03.23.24.59; Tue, 03 Dec 2019 23:25:11 -0800 (PST) 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 S1727208AbfLDHYc (ORCPT + 99 others); Wed, 4 Dec 2019 02:24:32 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:42191 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726053AbfLDHYa (ORCPT ); Wed, 4 Dec 2019 02:24:30 -0500 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1icP1M-0004T6-5Q; Wed, 04 Dec 2019 08:24:24 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1icP1K-0007HP-Jt; Wed, 04 Dec 2019 08:24:22 +0100 Date: Wed, 4 Dec 2019 08:24:22 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Peng Fan Cc: "rjui@broadcom.com" , "linus.walleij@linaro.org" , "bgolaszewski@baylibre.com" , "f.fainelli@gmail.com" , "sbranden@broadcom.com" , "thierry.reding@gmail.com" , "robh@kernel.org" , "bcm-kernel-feedback-list@broadcom.com" , dl-linux-imx , "linux-gpio@vger.kernel.org" , "linux-pwm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Alice Guo , kernel@pengutronix.de Subject: Re: [PATCH v2 1/2] gpio: mvebu: use platform_irq_count Message-ID: <20191204072422.vfo3mrrcaav75jv4@pengutronix.de> References: <1575433106-16171-1-git-send-email-peng.fan@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1575433106-16171-1-git-send-email-peng.fan@nxp.com> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 04, 2019 at 04:20:41AM +0000, Peng Fan wrote: > From: Peng Fan > > platform_irq_count() is the more generic way (independent of > device trees) to determine the count of available interrupts. So > use this instead. > > As platform_irq_count() might return an error code (which > of_irq_count doesn't) some additional handling is necessary. > > Signed-off-by: Peng Fan Reviewed-and-Commit-Log-Provided-by: Uwe Kleine-K?nig :-) Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | https://www.pengutronix.de/ |