Skip to content

Commit 1a0b05e

Browse files
author
Marc Zyngier
committed
irqdomain: Get rid of irq_create_strict_mappings()
No user of this helper is left, remove it. Signed-off-by: Marc Zyngier <[email protected]>
1 parent 5f8b938 commit 1a0b05e

File tree

2 files changed

+0
-35
lines changed

2 files changed

+0
-35
lines changed

include/linux/irqdomain.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,6 @@ static inline unsigned int irq_linear_revmap(struct irq_domain *domain,
415415
extern unsigned int irq_find_mapping(struct irq_domain *host,
416416
irq_hw_number_t hwirq);
417417
extern unsigned int irq_create_direct_mapping(struct irq_domain *host);
418-
extern int irq_create_strict_mappings(struct irq_domain *domain,
419-
unsigned int irq_base,
420-
irq_hw_number_t hwirq_base, int count);
421418

422419
extern const struct irq_domain_ops irq_domain_simple_ops;
423420

kernel/irq/irqdomain.c

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -703,38 +703,6 @@ unsigned int irq_create_mapping_affinity(struct irq_domain *domain,
703703
}
704704
EXPORT_SYMBOL_GPL(irq_create_mapping_affinity);
705705

706-
/**
707-
* irq_create_strict_mappings() - Map a range of hw irqs to fixed linux irqs
708-
* @domain: domain owning the interrupt range
709-
* @irq_base: beginning of linux IRQ range
710-
* @hwirq_base: beginning of hardware IRQ range
711-
* @count: Number of interrupts to map
712-
*
713-
* This routine is used for allocating and mapping a range of hardware
714-
* irqs to linux irqs where the linux irq numbers are at pre-defined
715-
* locations. For use by controllers that already have static mappings
716-
* to insert in to the domain.
717-
*
718-
* 0 is returned upon success, while any failure to establish a static
719-
* mapping is treated as an error.
720-
*/
721-
int irq_create_strict_mappings(struct irq_domain *domain, unsigned int irq_base,
722-
irq_hw_number_t hwirq_base, int count)
723-
{
724-
struct device_node *of_node;
725-
int ret;
726-
727-
of_node = irq_domain_get_of_node(domain);
728-
ret = irq_alloc_descs(irq_base, irq_base, count,
729-
of_node_to_nid(of_node));
730-
if (unlikely(ret < 0))
731-
return ret;
732-
733-
irq_domain_associate_many(domain, irq_base, hwirq_base, count);
734-
return 0;
735-
}
736-
EXPORT_SYMBOL_GPL(irq_create_strict_mappings);
737-
738706
static int irq_domain_translate(struct irq_domain *d,
739707
struct irq_fwspec *fwspec,
740708
irq_hw_number_t *hwirq, unsigned int *type)

0 commit comments

Comments
 (0)