]> git.baikalelectronics.ru Git - kernel.git/commit
GPIO: gpio-pxa: fix building without CONFIG_OF
authorArnd Bergmann <arnd@arndb.de>
Mon, 13 Aug 2012 14:36:10 +0000 (14:36 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 14 Aug 2012 04:50:36 +0000 (07:50 +0300)
commit5684c27111c689cb9959ca3dd545324e1a0b8a15
tree2378409c84f43ae86fdb6c12951e78b144683190
parentbcd1111f7a8ea8e64355e372d4da37dabaf605b8
GPIO: gpio-pxa: fix building without CONFIG_OF

Commit da1970780b ("GPIO: gpio-pxa: fix devicetree functions") added an
"xlate" function pointer to the irq_domain_ops, but this function is nor
declared or defined anywhere when CONFIG_OF is disabled, causing the
build error:

  drivers/gpio/gpio-pxa.c:532:11: error: 'irq_domain_xlate_twocell' undeclared here (not in a function)

Extending the DT-only code section to cover the irq_domain_ops and the
pxa_gpio_dt_ids solves this problem and makes it clearer which code is
actually used without DT.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpio/gpio-pxa.c