Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

EDAC/altera: Switch to irq_domain_create_linear()

irq_domain_add_linear() is going away as being obsolete now. Switch to
the preferred irq_domain_create_linear(). That differs in the first
parameter: It takes more generic struct fwnode_handle instead of struct
device_node. Therefore, of_fwnode_handle() is added around the
parameter.

Note some of the users can likely use dev->fwnode directly instead of
indirect of_fwnode_handle(dev->of_node). But dev->fwnode is not
guaranteed to be set for all, so this has to be investigated on case to
case basis (by people who can actually test with the HW).

[ tglx: Fix up subject prefix ]

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250319092951.37667-17-jirislaby@kernel.org


authored by

Jiri Slaby (SUSE) and committed by
Thomas Gleixner
6be00e43 13c98439

+2 -2
+2 -2
drivers/edac/altera_edac.c
··· 2130 2130 edac->irq_chip.name = pdev->dev.of_node->name; 2131 2131 edac->irq_chip.irq_mask = a10_eccmgr_irq_mask; 2132 2132 edac->irq_chip.irq_unmask = a10_eccmgr_irq_unmask; 2133 - edac->domain = irq_domain_add_linear(pdev->dev.of_node, 64, 2134 - &a10_eccmgr_ic_ops, edac); 2133 + edac->domain = irq_domain_create_linear(of_fwnode_handle(pdev->dev.of_node), 2134 + 64, &a10_eccmgr_ic_ops, edac); 2135 2135 if (!edac->domain) { 2136 2136 dev_err(&pdev->dev, "Error adding IRQ domain\n"); 2137 2137 return -ENOMEM;