diff options
| author | Jiri Slaby (SUSE) <[email protected]> | 2025-03-19 09:29:25 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2025-05-16 19:06:11 +0000 |
| commit | bf9935e479399b6f261e0f592e85d17a5486192f (patch) | |
| tree | 85e5fb1bb5323d85c22dc98444275f2afb05f8d0 /arch/powerpc/sysdev/tsi108_pci.c | |
| parent | pinctrl: Switch to irq_domain_create_*() (diff) | |
| download | kernel-bf9935e479399b6f261e0f592e85d17a5486192f.tar.gz kernel-bf9935e479399b6f261e0f592e85d17a5486192f.zip | |
powerpc: Switch to irq_domain_create_*()
irq_domain_add_*() interfaces are going away as being obsolete now.
Switch to the preferred irq_domain_create_*() ones. Those differ in the
node parameter: They take more generic struct fwnode_handle instead of
struct device_node. Therefore, of_fwnode_handle() is added around the
original 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) <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Christophe Leroy <[email protected]> # For 8xx
Link: https://lore.kernel.org/all/[email protected]
Diffstat (limited to 'arch/powerpc/sysdev/tsi108_pci.c')
| -rw-r--r-- | arch/powerpc/sysdev/tsi108_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/tsi108_pci.c b/arch/powerpc/sysdev/tsi108_pci.c index 0e42f7bad7db..07d0f6a83879 100644 --- a/arch/powerpc/sysdev/tsi108_pci.c +++ b/arch/powerpc/sysdev/tsi108_pci.c @@ -404,8 +404,8 @@ void __init tsi108_pci_int_init(struct device_node *node) { DBG("Tsi108_pci_int_init: initializing PCI interrupts\n"); - pci_irq_host = irq_domain_add_legacy(node, NR_IRQS_LEGACY, 0, 0, - &pci_irq_domain_ops, NULL); + pci_irq_host = irq_domain_create_legacy(of_fwnode_handle(node), NR_IRQS_LEGACY, 0, 0, + &pci_irq_domain_ops, NULL); if (pci_irq_host == NULL) { printk(KERN_ERR "pci_irq_host: failed to allocate irq domain!\n"); return; |
