Commit b018bb26 authored by Jiri Slaby (SUSE)'s avatar Jiri Slaby (SUSE) Committed by Madhavan Srinivasan
Browse files

powerpc: 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: default avatarJiri Slaby (SUSE) <jirislaby@kernel.org>
Acked-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
Link: https://lore.kernel.org/all/4bc0e1ca-a523-424a-8759-59e353317fba@kernel.org/


Signed-off-by: default avatarMadhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250723062842.1831271-1-jirislaby@kernel.org
parent 02c1b082
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -110,8 +110,7 @@ static int cpm_pic_probe(struct platform_device *pdev)

	out_be32(&data->reg->cpic_cimr, 0);

	data->host = irq_domain_create_linear(of_fwnode_handle(dev->of_node),
					      64, &cpm_pic_host_ops, data);
	data->host = irq_domain_create_linear(dev_fwnode(dev), 64, &cpm_pic_host_ops, data);
	if (!data->host)
		return -ENODEV;

+2 −3
Original line number Diff line number Diff line
@@ -412,9 +412,8 @@ static int fsl_of_msi_probe(struct platform_device *dev)
	}
	platform_set_drvdata(dev, msi);

	msi->irqhost = irq_domain_create_linear(of_fwnode_handle(dev->dev.of_node),
				      NR_MSI_IRQS_MAX, &fsl_msi_host_ops, msi);

	msi->irqhost = irq_domain_create_linear(dev_fwnode(&dev->dev), NR_MSI_IRQS_MAX,
						&fsl_msi_host_ops, msi);
	if (msi->irqhost == NULL) {
		dev_err(&dev->dev, "No memory for MSI irqhost\n");
		err = -ENOMEM;