summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2021-04-07 15:17:10 +0300
committerMarc Zyngier <maz@kernel.org>2021-04-07 15:25:52 +0300
commit4a35d6a03744ded782c9301f5f5d78ad68ce680f (patch)
tree6ede8b5a5a2b1bb0a20243a697ebcb559c911f94
parenteef56c3a0492e4c1bc2a081da8f402a26d882489 (diff)
downloadlinux-4a35d6a03744ded782c9301f5f5d78ad68ce680f.tar.xz
irqdomain: Get rid of irq_create_identity_mapping()
The sole user of irq_create_identity_mapping() having been converted, get rid of the unused helper. Signed-off-by: Marc Zyngier <maz@kernel.org>
-rw-r--r--include/linux/irqdomain.h6
-rw-r--r--kernel/irq/irqdomain.c3
2 files changed, 0 insertions, 9 deletions
diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h
index 33cacc8af26d..d2c61de208a8 100644
--- a/include/linux/irqdomain.h
+++ b/include/linux/irqdomain.h
@@ -419,12 +419,6 @@ extern int irq_create_strict_mappings(struct irq_domain *domain,
unsigned int irq_base,
irq_hw_number_t hwirq_base, int count);
-static inline int irq_create_identity_mapping(struct irq_domain *host,
- irq_hw_number_t hwirq)
-{
- return irq_create_strict_mappings(host, hwirq, hwirq, 1);
-}
-
extern const struct irq_domain_ops irq_domain_simple_ops;
/* stock xlate functions */
diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c
index d10ab1d689d5..35c5a99f8884 100644
--- a/kernel/irq/irqdomain.c
+++ b/kernel/irq/irqdomain.c
@@ -715,9 +715,6 @@ EXPORT_SYMBOL_GPL(irq_create_mapping_affinity);
* locations. For use by controllers that already have static mappings
* to insert in to the domain.
*
- * Non-linear users can use irq_create_identity_mapping() for IRQ-at-a-time
- * domain insertion.
- *
* 0 is returned upon success, while any failure to establish a static
* mapping is treated as an error.
*/