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

EDAC/altera: 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>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Yazen Ghannam <yazen.ghannam@amd.com>
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
Link: https://lore.kernel.org/20250723062631.1830757-1-jirislaby@kernel.org

authored by

Jiri Slaby (SUSE) and committed by
Borislav Petkov (AMD)
776cc2ec a95dcf3d

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