Skip to content

Commit 76760b9

Browse files
Jiri Slaby (SUSE)chleroy
authored andcommitted
soc: Use dev_fwnode()
irq_domain_create_simple() takes fwnode as the first argument. It can be extracted from the struct device using dev_fwnode() helper instead of using of_node with of_fwnode_handle(). So use the dev_fwnode() helper. Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org> Cc: Qiang Zhao <qiang.zhao@nxp.com> Cc: Christophe Leroy <christophe.leroy@csgroup.eu> Cc: Thierry Reding <thierry.reding@gmail.com> Cc: Jonathan Hunter <jonathanh@nvidia.com> Cc: linux-arm-kernel@lists.infradead.org Cc: linuxppc-dev@lists.ozlabs.org Acked-by: Thierry Reding <treding@nvidia.com> Link: https://lore.kernel.org/linuxppc-dev/20250611104348.192092-19-jirislaby@kernel.org/ Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
1 parent 52ccf19 commit 76760b9

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

drivers/soc/fsl/qe/qe_ic.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,6 @@ static int qe_ic_init(struct platform_device *pdev)
407407
void (*high_handler)(struct irq_desc *desc);
408408
struct qe_ic *qe_ic;
409409
struct resource *res;
410-
struct device_node *node = pdev->dev.of_node;
411410

412411
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
413412
if (res == NULL) {
@@ -441,7 +440,7 @@ static int qe_ic_init(struct platform_device *pdev)
441440
high_handler = NULL;
442441
}
443442

444-
qe_ic->irqhost = irq_domain_create_linear(of_fwnode_handle(node), NR_QE_IC_INTS,
443+
qe_ic->irqhost = irq_domain_create_linear(dev_fwnode(&pdev->dev), NR_QE_IC_INTS,
445444
&qe_ic_host_ops, qe_ic);
446445
if (qe_ic->irqhost == NULL) {
447446
dev_err(dev, "failed to add irq domain\n");

drivers/soc/tegra/pmc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2500,8 +2500,7 @@ static int tegra_pmc_irq_init(struct tegra_pmc *pmc)
25002500
pmc->irq.irq_set_type = pmc->soc->irq_set_type;
25012501
pmc->irq.irq_set_wake = pmc->soc->irq_set_wake;
25022502

2503-
pmc->domain = irq_domain_create_hierarchy(parent, 0, 96,
2504-
of_fwnode_handle(pmc->dev->of_node),
2503+
pmc->domain = irq_domain_create_hierarchy(parent, 0, 96, dev_fwnode(pmc->dev),
25052504
&tegra_pmc_irq_domain_ops, pmc);
25062505
if (!pmc->domain) {
25072506
dev_err(pmc->dev, "failed to allocate domain\n");

0 commit comments

Comments
 (0)