diff options
| author | Jiri Slaby (SUSE) <[email protected]> | 2025-03-19 09:29:22 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2025-05-16 19:06:10 +0000 |
| commit | 4b5e1d97154df4e0e2dabfc3e6bef68b87265a55 (patch) | |
| tree | 9bb4ce7a5c406633d294af0c0d6e5e2d6f760abf /drivers/pci/controller/pcie-iproc-msi.c | |
| parent | nios2: Switch to irq_domain_create_linear() (diff) | |
| download | kernel-4b5e1d97154df4e0e2dabfc3e6bef68b87265a55.tar.gz kernel-4b5e1d97154df4e0e2dabfc3e6bef68b87265a55.zip | |
PCI: 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 and convert the new instance in
dwc/pcie-amd-mdb.c ]
Signed-off-by: Jiri Slaby (SUSE) <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Diffstat (limited to 'drivers/pci/controller/pcie-iproc-msi.c')
| -rw-r--r-- | drivers/pci/controller/pcie-iproc-msi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/controller/pcie-iproc-msi.c b/drivers/pci/controller/pcie-iproc-msi.c index 804b3a5787c5..d2cb4c4f821a 100644 --- a/drivers/pci/controller/pcie-iproc-msi.c +++ b/drivers/pci/controller/pcie-iproc-msi.c @@ -446,8 +446,8 @@ static void iproc_msi_disable(struct iproc_msi *msi) static int iproc_msi_alloc_domains(struct device_node *node, struct iproc_msi *msi) { - msi->inner_domain = irq_domain_add_linear(NULL, msi->nr_msi_vecs, - &msi_domain_ops, msi); + msi->inner_domain = irq_domain_create_linear(NULL, msi->nr_msi_vecs, + &msi_domain_ops, msi); if (!msi->inner_domain) return -ENOMEM; |
