Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp990580lqh; Fri, 29 Mar 2024 03:57:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWdzv32VKsMXtJQJTZ+Tg5b89Eee7rjzL2mWy9ZvO3/pUHtK5ADnEDixzljkQSg0vnun9ZKhQATjXVLY/qgAg5gwKLSDidrn/6u8r1Z4A== X-Google-Smtp-Source: AGHT+IGKD5fBV4lf9hWUN9T9yp1a1sTfCl61NczlKtLW8P/Crjq3+EoOsWCQvClvSZFZmGXJU7K2 X-Received: by 2002:a17:907:980d:b0:a4e:37e1:62f4 with SMTP id ji13-20020a170907980d00b00a4e37e162f4mr919229ejc.18.1711709837743; Fri, 29 Mar 2024 03:57:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711709837; cv=pass; d=google.com; s=arc-20160816; b=SK8sVZMzMlEEV94eK0xNaVz2xlx7uxYK7r8ffttn8kVF81VGG2f/DjNkS0GF2zkQzx IoeOuqc2ElMgvGQ4+oFMxcX/p888lTlZjyxlL+hSNq/mvf4llFy1Im8hBHMQ3vdRV0TN qn/oDe6f1XYsBGRnVRT8Kkz40MDExVjar43zdZIAEghHns6UFfSHEiolc04g/Nj5iiEd rGoDyqw1USvB7hwsUEsAnSDcduuMOYIBfujfvN9ym2/oIjNPcAhn3TOVC7H1lbLhk0Ru 2NRUZ774U0f9E7ebi2eQhAz6+/etSwy5KYLpLKx0aOJlEAmCsNY5jc0pKahQxA1UP3L0 084g== 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=hkC5oEPsXm1AP3wzjVYSrvnJAqA8/EVTfrCv5n1STsc=; fh=YgUZ2/lPRGLRG7A+awv03LUUmaPSy2eh3E767EmTYHs=; b=zWS1Z8oyW9axzXrhVX5TJwZFjqZZrQ9mdMb20IkAR14AAcNSxw56o/gSjP5htveIPc mqKobc6EqeURNSsO/GOlqFz4SNYA1s7ggsQMTOBsxKrSjRXnruy9Qf3sFFs2db0B3LAK uwGzM2tyDurMvyeqM67XDm+SrEEuxnRKPlZ0apjkvZbAyhoUuV3fHo0eLNp8JUB9Grso n4lsye08WHxs2AQlRJu6a9QEZ/f5B1vHDuL/ADzEd+jd0UdQdwF3XFpP65ghhCHv3012 1rmko/o6KFmgCMGe4o5JjhNaIGQr14ZS7GgTBn1pDKLstDfCIaSxLBVcumIy6WJAW/hn 557g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-124409-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124409-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t8-20020a170906268800b00a469cf32fe5si1703598ejc.213.2024.03.29.03.57.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 03:57:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124409-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-124409-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124409-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 785891F2176F for ; Fri, 29 Mar 2024 10:57:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF3D86A348; Fri, 29 Mar 2024 10:56:47 +0000 (UTC) Received: from fgw21-7.mail.saunalahti.fi (fgw21-7.mail.saunalahti.fi [62.142.5.82]) (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 67E646A34B for ; Fri, 29 Mar 2024 10:56:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.82 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711709807; cv=none; b=P58x0qhuY646G3nbuQWaHcr10YwjuAnlhQ7c0Maw615xhDYeG7OgRuKVkuP+fRXnmWiugb40OULGwzkldxS4JoyHRvcNf9cmKrsJPzJni2dp6VftY/TPJcOVP3V1BDHi+K5KBntOQ2DLAxrf3sIzcUlFu4JdQmauxh77XSffvMs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711709807; c=relaxed/simple; bh=hR5SmMZRHVc6b1GDrG4uIwUL6+3ig4QW9kTK++2jt+8=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qhNVRWmF/soCr7Xo0QmHQZGdbpq5KYEsV0lUEGsXC03sNV87S8NdDkvaegcdikR7GGfFskieNKABkFlq/ytQVNc46ZlGsGNb08IzRJ/KzV/qIYKiiJU/S2ulHk4tkmpGU+/WnsRGB0IDfCAlOwdQZJbhZw8jJjXhfmxEI2f0/CM= 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.82 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 fgw21.mail.saunalahti.fi (Halon) with ESMTP id 07199218-edbb-11ee-abf4-005056bdd08f; Fri, 29 Mar 2024 12:56:43 +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 v2 07/11] pinctrl: aw9523: Remove unused irqchip field in struct aw9523_irq Date: Fri, 29 Mar 2024 12:55:21 +0200 Message-ID: <20240329105634.712457-8-andy.shevchenko@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240329105634.712457-1-andy.shevchenko@gmail.com> References: <20240329105634.712457-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 8c615adb3d578..f084dad5c88f9 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