Allocate the MSI device data on first invocation of the allocation function.

Signed-off-by: Thomas Gleixner <t...@linutronix.de>
Cc: Nishanth Menon <n...@ti.com>
Cc: Tero Kristo <kri...@kernel.org>
Cc: Santosh Shilimkar <ssant...@kernel.org>
Cc: linux-arm-ker...@lists.infradead.org
---
 drivers/soc/ti/ti_sci_inta_msi.c |    4 ++++
 1 file changed, 4 insertions(+)

--- a/drivers/soc/ti/ti_sci_inta_msi.c
+++ b/drivers/soc/ti/ti_sci_inta_msi.c
@@ -120,6 +120,10 @@ int ti_sci_inta_msi_domain_alloc_irqs(st
        if (pdev->id < 0)
                return -ENODEV;
 
+       ret = msi_setup_device_data(dev);
+       if (ret)
+               return ret;
+
        nvec = ti_sci_inta_msi_alloc_descs(dev, res);
        if (nvec <= 0)
                return nvec;

_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

Reply via email to