From nobody Mon Feb 9 12:23:23 2026 Received: from fgw20-7.mail.saunalahti.fi (fgw20-7.mail.saunalahti.fi [62.142.5.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CCF7B5D73B for ; Wed, 13 Mar 2024 23:54:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.81 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710374076; cv=none; b=pVO0LNHBo8jH2tqxNSS0vgSyZ9ka8BzFNaNehrlTLNCz1ouXIdz8cVWz3TddJbN08VHkEOC/Cn6nE82sknO1R3r8RLI4fxmgIvF168lFChCzfAox6DgqzXcZS3egwNqq+ZAWJOx2dIDBPL5U1Dn87ymMaoYQ2sZBfW1yezkDJ5Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710374076; c=relaxed/simple; bh=uEE6BWybd871+/CXBV9iWvsh4Tn0g6Ge38RppUuETfY=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZpBrhAu3XgRVzE/v0lvi1R/EXaGMA8eiFPm8LRZWSrv5TrpTtVQy53JxsN+8cmkGQBk/jmMdd7rL7V58vGSIerDObtwf6b/mUJ2MOG9JksZulgO3Q7CzVmRqP/tYiktGFkvA8xuY6HYHwNRcNLcw7QvptjN3ak+Ei70RElHuIB8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=62.142.5.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com Received: from localhost (88-113-26-217.elisa-laajakaista.fi [88.113.26.217]) by fgw20.mail.saunalahti.fi (Halon) with ESMTP id 0883fa43-e195-11ee-b3cf-005056bd6ce9; Thu, 14 Mar 2024 01:54:30 +0200 (EET) From: Andy Shevchenko To: Linus Walleij , Andy Shevchenko , AngeloGioacchino Del Regno , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 07/11] pinctrl: aw9523: Remove unused irqchip field in struct aw9523_irq Date: Thu, 14 Mar 2024 01:52:10 +0200 Message-ID: <20240313235422.180075-8-andy.shevchenko@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240313235422.180075-1-andy.shevchenko@gmail.com> References: <20240313235422.180075-1-andy.shevchenko@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The irqchip field is allocated, assigned but never used. Remove it. Signed-off-by: Andy Shevchenko --- drivers/pinctrl/pinctrl-aw9523.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/pinctrl/pinctrl-aw9523.c b/drivers/pinctrl/pinctrl-aw9= 523.c index 9e8e658f81404..44b798c39e26b 100644 --- a/drivers/pinctrl/pinctrl-aw9523.c +++ b/drivers/pinctrl/pinctrl-aw9523.c @@ -57,12 +57,10 @@ /* * struct aw9523_irq - Interrupt controller structure * @lock: mutex locking for the irq bus - * @irqchip: structure holding irqchip params * @cached_gpio: stores the previous gpio status for bit comparison */ struct aw9523_irq { struct mutex lock; - struct irq_chip *irqchip; u16 cached_gpio; }; =20 @@ -805,21 +803,15 @@ static int aw9523_init_irq(struct aw9523 *awi, int ir= q) { struct device *dev =3D awi->dev; struct gpio_irq_chip *girq; - struct irq_chip *irqchip; int ret; =20 if (!device_property_read_bool(dev, "interrupt-controller")) return 0; =20 - irqchip =3D devm_kzalloc(dev, sizeof(*irqchip), GFP_KERNEL); - if (!irqchip) - return -ENOMEM; - awi->irq =3D devm_kzalloc(dev, sizeof(*awi->irq), GFP_KERNEL); if (!awi->irq) return -ENOMEM; =20 - awi->irq->irqchip =3D irqchip; mutex_init(&awi->irq->lock); =20 ret =3D devm_request_threaded_irq(dev, irq, NULL, aw9523_irq_thread_func, --=20 2.44.0