Commit b330ff9f authored by Ahmed S. Darwish's avatar Ahmed S. Darwish Committed by Thomas Gleixner

platform-msi: Switch to the domain id aware MSI interfaces

Switch to the new domain id aware interfaces to phase out the previous
ones. No functional change.
Signed-off-by: default avatarAhmed S. Darwish <darwi@linutronix.de>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Reviewed-by: default avatarKevin Tian <kevin.tian@intel.com>
Acked-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221124230314.513924920@linutronix.de
parent d3a11dee
...@@ -213,7 +213,7 @@ int platform_msi_domain_alloc_irqs(struct device *dev, unsigned int nvec, ...@@ -213,7 +213,7 @@ int platform_msi_domain_alloc_irqs(struct device *dev, unsigned int nvec,
if (err) if (err)
return err; return err;
err = msi_domain_alloc_irqs(dev->msi.domain, dev, nvec); err = msi_domain_alloc_irqs_range(dev, MSI_DEFAULT_DOMAIN, 0, nvec - 1);
if (err) if (err)
platform_msi_free_priv_data(dev); platform_msi_free_priv_data(dev);
...@@ -227,7 +227,7 @@ EXPORT_SYMBOL_GPL(platform_msi_domain_alloc_irqs); ...@@ -227,7 +227,7 @@ EXPORT_SYMBOL_GPL(platform_msi_domain_alloc_irqs);
*/ */
void platform_msi_domain_free_irqs(struct device *dev) void platform_msi_domain_free_irqs(struct device *dev)
{ {
msi_domain_free_irqs(dev->msi.domain, dev); msi_domain_free_irqs_all(dev, MSI_DEFAULT_DOMAIN);
platform_msi_free_priv_data(dev); platform_msi_free_priv_data(dev);
} }
EXPORT_SYMBOL_GPL(platform_msi_domain_free_irqs); EXPORT_SYMBOL_GPL(platform_msi_domain_free_irqs);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment