]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
genirq/msi: Remove msi_post_free()
authorNam Cao <namcao@linutronix.de>
Tue, 16 Sep 2025 06:10:07 +0000 (08:10 +0200)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Tue, 23 Sep 2025 08:59:51 +0000 (14:29 +0530)
The only user of msi_post_free() - powerpc/pseries - has been changed to
use msi_teardown().

Remove this unused callback.

Signed-off-by: Nam Cao <namcao@linutronix.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250916061007.964005-1-namcao@linutronix.de
include/linux/msi.h
kernel/irq/msi.c

index e5e86a8529fb6f75c2c30fcbbe009119b185d3a5..faac634ac230778b2f20e5726cac675ab54e2a40 100644 (file)
@@ -431,8 +431,6 @@ struct msi_domain_info;
  *                     function.
  * @domain_free_irqs:  Optional function to override the default free
  *                     function.
- * @msi_post_free:     Optional function which is invoked after freeing
- *                     all interrupts.
  * @msi_translate:     Optional translate callback to support the odd wire to
  *                     MSI bridges, e.g. MBIGEN
  *
@@ -473,8 +471,6 @@ struct msi_domain_ops {
                                             struct device *dev, int nvec);
        void            (*domain_free_irqs)(struct irq_domain *domain,
                                            struct device *dev);
-       void            (*msi_post_free)(struct irq_domain *domain,
-                                        struct device *dev);
        int             (*msi_translate)(struct irq_domain *domain, struct irq_fwspec *fwspec,
                                         irq_hw_number_t *hwirq, unsigned int *type);
 };
index 9b09ad3f9914cb28d4059f960ba3881e26bfe18d..e7ad992548416ac5c032a1f9df4a98dcd48f7095 100644 (file)
@@ -1644,9 +1644,6 @@ static void msi_domain_free_locked(struct device *dev, struct msi_ctrl *ctrl)
        else
                __msi_domain_free_irqs(dev, domain, ctrl);
 
-       if (ops->msi_post_free)
-               ops->msi_post_free(domain, dev);
-
        if (info->flags & MSI_FLAG_FREE_MSI_DESCS)
                msi_domain_free_descs(dev, ctrl);
 }