Skip to content

Commit d319a29

Browse files
lvjianmin-loongsonMarc Zyngier
authored andcommitted
genirq/generic_chip: Export irq_unmap_generic_chip
Some irq controllers have to re-implement a private version for irq_generic_chip_ops, because they have a different xlate to translate hwirq. Export irq_unmap_generic_chip to allow reusing in drivers. Signed-off-by: Jianmin Lv <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 744b9a0 commit d319a29

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

include/linux/irq.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,6 +1121,7 @@ int irq_gc_set_wake(struct irq_data *d, unsigned int on);
11211121
/* Setup functions for irq_chip_generic */
11221122
int irq_map_generic_chip(struct irq_domain *d, unsigned int virq,
11231123
irq_hw_number_t hw_irq);
1124+
void irq_unmap_generic_chip(struct irq_domain *d, unsigned int virq);
11241125
struct irq_chip_generic *
11251126
irq_alloc_generic_chip(const char *name, int nr_ct, unsigned int irq_base,
11261127
void __iomem *reg_base, irq_flow_handler_t handler);

kernel/irq/generic-chip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ int irq_map_generic_chip(struct irq_domain *d, unsigned int virq,
431431
return 0;
432432
}
433433

434-
static void irq_unmap_generic_chip(struct irq_domain *d, unsigned int virq)
434+
void irq_unmap_generic_chip(struct irq_domain *d, unsigned int virq)
435435
{
436436
struct irq_data *data = irq_domain_get_irq_data(d, virq);
437437
struct irq_domain_chip_generic *dgc = d->gc;

0 commit comments

Comments
 (0)