Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 91daac8

Browse files
covanammaddy-kerneldev
authored andcommitted
genirq/msi: Remove msi_post_free()
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 <[email protected]> Reviewed-by: Thomas Gleixner <[email protected]> Signed-off-by: Madhavan Srinivasan <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 4a774b3 commit 91daac8

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

include/linux/msi.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,6 @@ struct msi_domain_info;
431431
* function.
432432
* @domain_free_irqs: Optional function to override the default free
433433
* function.
434-
* @msi_post_free: Optional function which is invoked after freeing
435-
* all interrupts.
436434
* @msi_translate: Optional translate callback to support the odd wire to
437435
* MSI bridges, e.g. MBIGEN
438436
*
@@ -473,8 +471,6 @@ struct msi_domain_ops {
473471
struct device *dev, int nvec);
474472
void (*domain_free_irqs)(struct irq_domain *domain,
475473
struct device *dev);
476-
void (*msi_post_free)(struct irq_domain *domain,
477-
struct device *dev);
478474
int (*msi_translate)(struct irq_domain *domain, struct irq_fwspec *fwspec,
479475
irq_hw_number_t *hwirq, unsigned int *type);
480476
};

kernel/irq/msi.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,9 +1644,6 @@ static void msi_domain_free_locked(struct device *dev, struct msi_ctrl *ctrl)
16441644
else
16451645
__msi_domain_free_irqs(dev, domain, ctrl);
16461646

1647-
if (ops->msi_post_free)
1648-
ops->msi_post_free(domain, dev);
1649-
16501647
if (info->flags & MSI_FLAG_FREE_MSI_DESCS)
16511648
msi_domain_free_descs(dev, ctrl);
16521649
}

0 commit comments

Comments
 (0)