diff --git a/include/linux/irqdesc.h b/include/linux/irqdesc.h index 66c41b40ca503138d6f009d4a272a9c1ee506b0c..a72bfd94ea107590b0e7685178cf8ce8c106a9f7 100644 --- a/include/linux/irqdesc.h +++ b/include/linux/irqdesc.h @@ -100,6 +100,11 @@ static inline struct irq_desc *irq_data_to_desc(struct irq_data *data) #endif } +static inline unsigned int irq_desc_get_irq(struct irq_desc *desc) +{ + return desc->irq_data.irq; +} + static inline struct irq_data *irq_desc_get_irq_data(struct irq_desc *desc) { return &desc->irq_data;