gpio/xilinx: Create a single gpio chip on dual cores
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Wed, 17 Dec 2014 15:51:12 +0000 (16:51 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 15 Jan 2015 16:23:16 +0000 (17:23 +0100)
commit1d6902d3a68e83061c979a57d7411e8ae172df67
treeb39ac817a44a64375c20d69a6f82c6ec67d627cd
parent4ae798fae200f1d26c820c6e508a6bcd3c5aa8f2
gpio/xilinx: Create a single gpio chip on dual cores

Currently, we had two gpio chips on cores configured as dual.

This lead to mapping the same memory region twice and duplicating the
init and remove code.

This patch creates a single gpiochip for single and dual cores.

Suggested-by: Alexandre Courbot <gnurou@gmail.com>
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-xilinx.c