1 From d1df97f2d10654ace3d14a77a2de866ce4cd8d4b Mon Sep 17 00:00:00 2001
2 From: Joerg Faschingbauer <jf@faschingbauer.co.at>
3 Date: Sat, 18 Jan 2014 23:15:07 +0100
4 Subject: [PATCH 162/174] bcm2708: select NEED_MACH_GPIO_H
6 makers out there use to use gpio_to_irq() in board setup code. it is
7 necessary that gpio_to_irq() be defined as a macro for this to work.
9 https://github.com/raspberrypi/linux/commit/01464226ac6089bd6a33f9899cc792c2355ebf39,
10 on its way towards devicetree, introduces a switch NEED_MACH_GPIO_H
11 that platforms have to set to get the macro definition of
12 gpio_to_irq() - otherwise, the gpiolib incarnation of gpio_to_irq() is
13 found instead which does not work from board code.
15 define NEED_MACH_GPIO_H to make things work again without any pain for
16 makers (though this clearly is in the way of devicetree).
18 arch/arm/Kconfig | 1 +
19 1 file changed, 1 insertion(+)
21 --- a/arch/arm/Kconfig
22 +++ b/arch/arm/Kconfig
23 @@ -367,6 +367,7 @@ config ARCH_BCM2708
26 select HAVE_SCHED_CLOCK
27 + select NEED_MACH_GPIO_H
28 select NEED_MACH_MEMORY_H
30 select ARCH_HAS_CPUFREQ