aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-grgpio.c
diff options
context:
space:
mode:
authorLinus Walleij <[email protected]>2014-10-27 17:15:15 +0000
committerLinus Walleij <[email protected]>2014-10-27 17:19:03 +0000
commit1972c97db5b0c125918f662cd084c7d5370674c0 (patch)
tree6dc360ca2b5fa49461ccd43e3fadfd416e763486 /drivers/gpio/gpio-grgpio.c
parentgpio: amd8111: unmap ioport on failure case (diff)
downloadkernel-1972c97db5b0c125918f662cd084c7d5370674c0.tar.gz
kernel-1972c97db5b0c125918f662cd084c7d5370674c0.zip
gpio: dwapb: fix compile errors
Whereas the DWAPB driver does not really depend on the ARM architecture, it uses [readl|writel]_relaxed() not found on arch such as Blackfin, so restrict this to ARM until there is another architecture that can make use of it. It is also using the of_node of the gpiochip, so fix this too by requiring OF_GPIO. All error/warnings: make.cross ARCH=blackfin drivers/gpio/gpio-dwapb.c: In function 'dwapb_irq_handler': drivers/gpio/gpio-dwapb.c:91:2: error: implicit declaration of function 'readl_relaxed' [-Werror=implicit-function-declaration] drivers/gpio/gpio-dwapb.c: In function 'dwapb_configure_irqs': drivers/gpio/gpio-dwapb.c:212:32: error: 'struct gpio_chip' has no member named 'of_node' drivers/gpio/gpio-dwapb.c:221:16: error: 'struct gpio_chip' has no member named 'of_node' drivers/gpio/gpio-dwapb.c: In function 'dwapb_gpio_add_port': drivers/gpio/gpio-dwapb.c:331:14: error: 'struct gpio_chip' has no member named 'of_node' cc1: some warnings being treated as errors Cc: Jamie Iles <[email protected]> Cc: Alan Tull <[email protected]> Reported-by: kbuild test robot <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'drivers/gpio/gpio-grgpio.c')
0 files changed, 0 insertions, 0 deletions