backports: irq_get_trigger_type requires CONFIG_HAVE_GENERIC_HARDIRQS=y
authorStefan Assmann <sassmann@kpanic.de>
Fri, 8 Aug 2014 12:00:26 +0000 (14:00 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 9 Aug 2014 12:02:41 +0000 (14:02 +0200)
commit2cc1500fe79718fad2362b75b01d36e4e6bbd0c8
tree3e6ceb72842dd087d3ff59a0034918c412042652
parentf82cf56b854bbfb54957ccc7f3e258c31d1a8afe
backports: irq_get_trigger_type requires CONFIG_HAVE_GENERIC_HARDIRQS=y

Only backport irq_get_trigger_type on architectures that have
CONFIG_HAVE_GENERIC_HARDIRQS=y. Otherwise we end up with:

In file included from drivers/pci/msi.c:11:0:
backport/backport-include/linux/irq.h: In function 'irq_get_trigger_type':
backport/backport-include/linux/irq.h:9:9: error: implicit declaration
of function 'irq_get_irq_data' [-Werror=implicit-function-declaration]
  struct irq_data *d = irq_get_irq_data(irq);

Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backport/backport-include/linux/irq.h