From 29fd6c5a94cfeae011379a8011ff145fda34a0a7 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sat, 1 Jun 2013 18:00:15 +0200 Subject: [PATCH] backports: protect irq_set_irq_type() irq_set_irq_type is defined to set_irq_type in RHEL 6.4. Signed-off-by: Hauke Mehrtens Signed-off-by: Luis R. Rodriguez --- backport/backport-include/linux/irq.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backport/backport-include/linux/irq.h b/backport/backport-include/linux/irq.h index 357d6881266c..5d7326f15bfc 100644 --- a/backport/backport-include/linux/irq.h +++ b/backport/backport-include/linux/irq.h @@ -16,10 +16,12 @@ static inline int irq_set_chip_data(unsigned int irq, void *data) { return set_irq_chip_data(irq, data); } +#ifndef irq_set_irq_type static inline int irq_set_irq_type(unsigned int irq, unsigned int type) { return set_irq_type(irq, type); } +#endif static inline int irq_set_msi_desc(unsigned int irq, struct msi_desc *entry) { return set_irq_msi(irq, entry); -- 2.30.2