]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: pxa: fix compilation problem on AM300EPD board
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 4 Feb 2014 12:30:05 +0000 (13:30 +0100)
committerKevin Hilman <khilman@linaro.org>
Mon, 10 Feb 2014 18:32:08 +0000 (10:32 -0800)
commit2a5227bd9ccb8b2f57385c7457632130b7ed6ac4
tree209c094e806523c482b84d1227113f106d9aeb8e
parentf5a8b60a769da139b86693b45ff749fe693309a4
ARM: pxa: fix compilation problem on AM300EPD board

This board fails compilation like this:
arch/arm/mach-pxa/am300epd.c: In function ‘am300_cleanup’:
arch/arm/mach-pxa/am300epd.c:179:2: error: implicit declaration
of function ‘PXA_GPIO_TO_IRQ’ [-Werror=implicit-function-declaration]
  free_irq(PXA_GPIO_TO_IRQ(RDY_GPIO_PIN), par);

This was caused by commit 86d4135abdf9e6b9bc108e514db109b2effd6674
"ARM: pxa: delete the custom GPIO header"

This is because it was previously getting the macro PXA_GPIO_TO_IRQ
implicitly from <linux/gpio.h> which in turn implicitly included
<mach/gpio.h> which in turn included <mach/irqs.h>.

Add the missing include so that the board compiles again.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Kevin Hilman <khilman@linaro.org>
arch/arm/mach-pxa/am300epd.c