summaryrefslogtreecommitdiff
path: root/backport/backport-include/linux/of_irq.h
blob: 58108e2c2466521b63647072c6e743f8f5b20d7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef __BACKPORT_OF_IRQ_H
#define __BACKPORT_OF_IRQ_H
#include_next <linux/of_irq.h>
#include <linux/version.h>

#if LINUX_VERSION_IS_LESS(3,5,0) && !defined(CONFIG_OF)
#define irq_of_parse_and_map LINUX_BACKPORT(irq_of_parse_and_map)
static inline unsigned int irq_of_parse_and_map(struct device_node *dev,
						int index)
{
	return 0;
}
#endif /* LINUX_VERSION_IS_LESS(4,5,0) */

#endif /* __BACKPORT_OF_IRQ_H */