Received: by 2002:ab2:5c0e:0:b0:1ef:a325:1205 with SMTP id i14csp68092lqk; Wed, 13 Mar 2024 16:55:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXWuDxAOgraTuZdQQnEmjj7vbEUiSv3qbV6z/qTtLfPdlgnLLkyZvkrjgm9mj3lF5A57kSX5DtxDJMzG5tIYzKBuVqNPKLySooZUipp+g== X-Google-Smtp-Source: AGHT+IFxxEzCWR62WmYuvb7PpVUalMIl7e6FANpqFTxgbgDe9tkqvw8v2/j9dXj24eGbSVeZTDED X-Received: by 2002:a17:90a:e38e:b0:29c:7908:b111 with SMTP id b14-20020a17090ae38e00b0029c7908b111mr170838pjz.30.1710374111738; Wed, 13 Mar 2024 16:55:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710374111; cv=pass; d=google.com; s=arc-20160816; b=ej+s1T9wFWjHcVxXrr+3xCGgk+syvTgUfK0FiT8Y6g4AZF0v8P/DlYOyyQqX5i/mz9 2uHGttmhNacU/npxC5QsVDlir4EwzGUQDpHxWK+ynvhPs8HbTCKuekXAvBPKBxAf6fwp QEl8EbuMHhV/Cv+P5MjuE4k+zUqBv6Y0IDfAgrZ+lExJ/o1pCIwCTpez1O+aT2sAsyoi npREuYTkv36Pbtkf6eOlLxwNRO6nmvQOkVWFCgkqcb3/1FE+jYFy3hjz5FWhYy8Kh0xr f9fnHuNodkMrQrAizMbcTcHNzlOtRjzfjAer6vJjSSitlp3y7i2Ev8DY15bcZe7DxaxL jqdg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from; bh=afqvz3NjnG3pdjsspSPLdg3WEQaNW98Kp3HZvqmHg94=; fh=YgUZ2/lPRGLRG7A+awv03LUUmaPSy2eh3E767EmTYHs=; b=t7OocSYVpNN+3NbzDRZs09IgN+pj8qB8JvdRZ+EfWAF9OCxoYRNnt68XThGatBBvGX ufQ7xe6+Rpp/I/EXPz/hDokEvmBMseL0Iu3uaSFowH0lN3kbhvCR7mVK85B6/oK1euIi pKWMAzf8HAjOcINQkZyvli27Hj/aonoXOFATfmAuuVJYp3Rm7Ozzflo5xP5CekvbqZIH b+7CUdFO6y13yYoJHhURv7pSP45jsmYtFqrxOcFiczL5773KjrD9qK3+L8tde9TaSL3e 7um18ENQUruKwWE98Ub+Ifospz4wZqRVGXd7QZ+A/+WlvAEurXKYlKFpkIDXUlgJ19DD PVzA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-102656-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102656-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y3-20020a17090a1f4300b0029b22db7d8csi2389096pjy.41.2024.03.13.16.55.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 16:55:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102656-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-102656-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102656-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 69E08282235 for ; Wed, 13 Mar 2024 23:55:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 551585EE8C; Wed, 13 Mar 2024 23:54:37 +0000 (UTC) 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: 8bit 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-aw9523.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; }; @@ -805,21 +803,15 @@ static int aw9523_init_irq(struct aw9523 *awi, int irq) { struct device *dev = awi->dev; struct gpio_irq_chip *girq; - struct irq_chip *irqchip; int ret; if (!device_property_read_bool(dev, "interrupt-controller")) return 0; - irqchip = devm_kzalloc(dev, sizeof(*irqchip), GFP_KERNEL); - if (!irqchip) - return -ENOMEM; - awi->irq = devm_kzalloc(dev, sizeof(*awi->irq), GFP_KERNEL); if (!awi->irq) return -ENOMEM; - awi->irq->irqchip = irqchip; mutex_init(&awi->irq->lock); ret = devm_request_threaded_irq(dev, irq, NULL, aw9523_irq_thread_func, -- 2.44.0