From nobody Wed Apr 8 03:10:52 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 7C18E3D5666; Tue, 10 Mar 2026 17:37:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773164271; cv=none; b=ecJ70lAbukWoAZNpVylmxHa8yaOidZynZ9i5MnS+0GzeQEqiFofUk77fPnWZB9Uqq+W894B8fhaxby+GmDwYqkHe3bZLJNacrGNhvaCr2BtjuO2jbRa/OvxS47KeYj7AhYi84iQ9FdQ4hlM5cKVbomLWElHzVlubLJ4Ou01oLWU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773164271; c=relaxed/simple; bh=OGV541lFfaxiNx5Zl1hIZc1RiHEgoVPhNfjcFuTJtVM=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=TTi4S/mNBTW3xY0PKkL4MsxR++p41bbFgXCiNyxDTOqs6E2boB6u6RSRjWLy6YhEKTO4Al8pwoe59LGl6EJ3d8QEbVw4qp2/0knq9+fdOWmdFHipahGyE85zQIPMPiQC4zXW2GZPQgHM0+J22AiSb4ImCt2V1VcBouojAUvRFeg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=lUKLCHAY; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=sqxrYZ2Q; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="lUKLCHAY"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="sqxrYZ2Q" Date: Tue, 10 Mar 2026 17:37:41 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1773164263; 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=StEtbTYq/yP+p4bUdHrmeMfHKA5282r7O1BWk+k1DZM=; b=lUKLCHAY9QAC0DmT0FVCWE98lfD6wbsi5X7YIVtGnky9x4R8jMdDPYT/2wQccYM7kgAqrj +K3ciHs220As0WSn7XTxSVjbKBi/GfaCYg+58fTgdRyyxvUyvyVyF54+3hh3DlKlAJyoF0 xwu/vmlqqtkCWuP0WIn+aOYJllHmhCOHpWsv8yZNw8UVZLS+LgV6cfaUN3WOtlmo/1TZTO N/iVdtoduk/irizDUaBa69cVttV0BHU/8o0WKEJmlKGJOQMfm+oV8qfXz7QjIq2JvgKvZc cyw5b9q9wfn3J9wLk/wlg7CglgJR6Vke3Onn26wku2obqziaOo2r1ljUGca3Og== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1773164263; 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=StEtbTYq/yP+p4bUdHrmeMfHKA5282r7O1BWk+k1DZM=; b=sqxrYZ2QgX+jY53D2d6rXeDpz/rOJZqZ9L4Ral3A55gsQkf/KoGvTh/zjlak00UlWs+UeF aEEvsViaJuTpzwBw== From: "tip-bot2 for Lad Prabhakar" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/drivers] irqchip/renesas-rzv2h: Use local device pointer in ICU probe Cc: Lad Prabhakar , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260304113317.129339-3-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20260304113317.129339-3-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177316426173.1647592.7904012429939527789.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the irq/drivers branch of tip: Commit-ID: bbe78cb1399b4ba6b6d14943fb9dadefe9c17b5b Gitweb: https://git.kernel.org/tip/bbe78cb1399b4ba6b6d14943fb9dadefe= 9c17b5b Author: Lad Prabhakar AuthorDate: Wed, 04 Mar 2026 11:33:12=20 Committer: Thomas Gleixner CommitterDate: Tue, 10 Mar 2026 18:34:51 +01:00 irqchip/renesas-rzv2h: Use local device pointer in ICU probe Use a local struct device pointer in rzv2h_icu_probe_common() to avoid repeated dereferencing of pdev->dev. Signed-off-by: Lad Prabhakar Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260304113317.129339-3-prabhakar.mahadev-la= d.rj@bp.renesas.com --- drivers/irqchip/irq-renesas-rzv2h.c | 29 ++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/drivers/irqchip/irq-renesas-rzv2h.c b/drivers/irqchip/irq-rene= sas-rzv2h.c index 20c0cd1..766b981 100644 --- a/drivers/irqchip/irq-renesas-rzv2h.c +++ b/drivers/irqchip/irq-renesas-rzv2h.c @@ -555,57 +555,58 @@ static int rzv2h_icu_probe_common(struct platform_dev= ice *pdev, struct device_no { struct irq_domain *irq_domain, *parent_domain; struct device_node *node =3D pdev->dev.of_node; + struct device *dev =3D &pdev->dev; struct reset_control *resetn; int ret; =20 parent_domain =3D irq_find_host(parent); if (!parent_domain) { - dev_err(&pdev->dev, "cannot find parent domain\n"); + dev_err(dev, "cannot find parent domain\n"); return -ENODEV; } =20 - rzv2h_icu_data =3D devm_kzalloc(&pdev->dev, sizeof(*rzv2h_icu_data), GFP_= KERNEL); + rzv2h_icu_data =3D devm_kzalloc(dev, sizeof(*rzv2h_icu_data), GFP_KERNEL); if (!rzv2h_icu_data) return -ENOMEM; =20 platform_set_drvdata(pdev, rzv2h_icu_data); =20 - rzv2h_icu_data->base =3D devm_of_iomap(&pdev->dev, node, 0, NULL); + rzv2h_icu_data->base =3D devm_of_iomap(dev, node, 0, NULL); if (IS_ERR(rzv2h_icu_data->base)) return PTR_ERR(rzv2h_icu_data->base); =20 ret =3D rzv2h_icu_parse_interrupts(rzv2h_icu_data, node); if (ret) { - dev_err(&pdev->dev, "cannot parse interrupts: %d\n", ret); + dev_err(dev, "cannot parse interrupts: %d\n", ret); return ret; } =20 - resetn =3D devm_reset_control_get_exclusive_deasserted(&pdev->dev, NULL); + resetn =3D devm_reset_control_get_exclusive_deasserted(dev, NULL); if (IS_ERR(resetn)) { ret =3D PTR_ERR(resetn); - dev_err(&pdev->dev, "failed to acquire deasserted reset: %d\n", ret); + dev_err(dev, "failed to acquire deasserted reset: %d\n", ret); return ret; } =20 - ret =3D devm_pm_runtime_enable(&pdev->dev); + ret =3D devm_pm_runtime_enable(dev); if (ret < 0) { - dev_err(&pdev->dev, "devm_pm_runtime_enable failed, %d\n", ret); + dev_err(dev, "devm_pm_runtime_enable failed, %d\n", ret); return ret; } =20 - ret =3D pm_runtime_resume_and_get(&pdev->dev); + ret =3D pm_runtime_resume_and_get(dev); if (ret < 0) { - dev_err(&pdev->dev, "pm_runtime_resume_and_get failed: %d\n", ret); + dev_err(dev, "pm_runtime_resume_and_get failed: %d\n", ret); return ret; } =20 raw_spin_lock_init(&rzv2h_icu_data->lock); =20 irq_domain =3D irq_domain_create_hierarchy(parent_domain, 0, ICU_NUM_IRQ, - dev_fwnode(&pdev->dev), &rzv2h_icu_domain_ops, + dev_fwnode(dev), &rzv2h_icu_domain_ops, rzv2h_icu_data); if (!irq_domain) { - dev_err(&pdev->dev, "failed to add irq domain\n"); + dev_err(dev, "failed to add irq domain\n"); ret =3D -ENOMEM; goto pm_put; } @@ -616,12 +617,12 @@ static int rzv2h_icu_probe_common(struct platform_dev= ice *pdev, struct device_no =20 /* * coccicheck complains about a missing put_device call before returning,= but it's a false - * positive. We still need &pdev->dev after successfully returning from t= his function. + * positive. We still need dev after successfully returning from this fun= ction. */ return 0; =20 pm_put: - pm_runtime_put(&pdev->dev); + pm_runtime_put(dev); =20 return ret; }