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 X-Spam-Level: X-Spam-Status: No, score=-20.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24573C4361B for ; Sat, 12 Dec 2020 13:08:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E95EC22C7D for ; Sat, 12 Dec 2020 13:08:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439052AbgLLNIO (ORCPT ); Sat, 12 Dec 2020 08:08:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438933AbgLLNAK (ORCPT ); Sat, 12 Dec 2020 08:00:10 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 972BAC06138C; Sat, 12 Dec 2020 04:58:43 -0800 (PST) Date: Sat, 12 Dec 2020 12:58:38 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1607777918; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=63m2oeCkHEXcaQ7sm1vjHFDZAzx8OkRjb3WBIupLpxI=; b=NjYzBslMJxjSmZHv2ZxC3XvpKMyo7y3DuzxbauIzRPwjzsW3MIZ7aK+jzoVlxKOgEygnCa L+i+q4kEWVm24/+ov0DNnYONPvGFUpLw8MPPie87J1mJq/7HtyhPeykDmaLqblNKghIC0K 2b9TPj2znJoAKI5nHEIZscnjhZrm+YkKRwVeYyDKBpV3P1IulrjcBiuL3k7m3l+6Ui7Vu/ jehE9KYQmp3ySM1Uawn/IncG8N4EzzgW7e30gLyP2irrDaOmsBbaL6U6EBrD3ihTcMmYj3 r9PufQnIpHPU8STfWgFI8ISzJhmBh3UxnOiYnT6iaeOzbCdfxcDAHRKDUOi1fg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1607777918; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=63m2oeCkHEXcaQ7sm1vjHFDZAzx8OkRjb3WBIupLpxI=; b=/8bFk5Na6FtIov2ZkkDLuc5xD+Y0vABKazUCZ6PaLyAdPuvl2/OZqnn/W9HxpwFznAix0I 66qiChufGXIZ4WBA== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] pinctrl: nomadik: Use irq_has_action() Cc: Thomas Gleixner , Linus Walleij , x86@kernel.org, linux-kernel@vger.kernel.org, maz@kernel.org In-Reply-To: <20201210194044.065003856@linutronix.de> References: <20201210194044.065003856@linutronix.de> MIME-Version: 1.0 Message-ID: <160777791825.3364.15312294043943937969.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/core branch of tip: Commit-ID: 52ae486b230b6d9508068d49da850fb17d25a174 Gitweb: https://git.kernel.org/tip/52ae486b230b6d9508068d49da850fb17d25a174 Author: Thomas Gleixner AuthorDate: Thu, 10 Dec 2020 20:25:51 +01:00 Committer: Thomas Gleixner CommitterDate: Sat, 12 Dec 2020 12:59:04 +01:00 pinctrl: nomadik: Use irq_has_action() Let the core code do the fiddling with irq_desc. Signed-off-by: Thomas Gleixner Reviewed-by: Linus Walleij Link: https://lore.kernel.org/r/20201210194044.065003856@linutronix.de --- drivers/pinctrl/nomadik/pinctrl-nomadik.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pinctrl/nomadik/pinctrl-nomadik.c b/drivers/pinctrl/nomadik/pinctrl-nomadik.c index 657e35a..724abe1 100644 --- a/drivers/pinctrl/nomadik/pinctrl-nomadik.c +++ b/drivers/pinctrl/nomadik/pinctrl-nomadik.c @@ -948,7 +948,6 @@ static void nmk_gpio_dbg_show_one(struct seq_file *s, (mode < 0) ? "unknown" : modes[mode]); } else { int irq = chip->to_irq(chip, offset); - struct irq_desc *desc = irq_to_desc(irq); const int pullidx = pull ? 1 : 0; int val; static const char * const pulls[] = { @@ -969,7 +968,7 @@ static void nmk_gpio_dbg_show_one(struct seq_file *s, * This races with request_irq(), set_irq_type(), * and set_irq_wake() ... but those are "rare". */ - if (irq > 0 && desc && desc->action) { + if (irq > 0 && irq_has_action(irq)) { char *trigger; if (nmk_chip->edge_rising & BIT(offset))