summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/sh-pfc/core.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2015-08-04 16:55:19 +0300
committerGeert Uytterhoeven <geert+renesas@glider.be>2015-10-02 10:54:33 +0300
commit56f891b46d37e8c7b04db660d6e9ad05e586203c (patch)
treedc4cf2d8336688249a5560da0f39fc6cb842248f /drivers/pinctrl/sh-pfc/core.h
parent57106e5ca55bea70e3e296a3e7546aefe0d1dabe (diff)
downloadlinux-56f891b46d37e8c7b04db660d6e9ad05e586203c.tar.xz
pinctrl: sh-pfc: Confine legacy function GPIOs to SH
Legacy function GPIOs are no longer used on ARM since commit a27c5cd1a08cc95c ("sh-pfc: sh73a0: Remove function GPIOs"). Extract its setup code into a separate function, and make all function GPIO related code and data depend on CONFIG_SUPERH. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'drivers/pinctrl/sh-pfc/core.h')
-rw-r--r--drivers/pinctrl/sh-pfc/core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pinctrl/sh-pfc/core.h b/drivers/pinctrl/sh-pfc/core.h
index 4c3c37bf7161..c38ace46d711 100644
--- a/drivers/pinctrl/sh-pfc/core.h
+++ b/drivers/pinctrl/sh-pfc/core.h
@@ -46,7 +46,9 @@ struct sh_pfc {
unsigned int nr_gpio_pins;
struct sh_pfc_chip *gpio;
+#ifdef CONFIG_SUPERH
struct sh_pfc_chip *func;
+#endif
struct sh_pfc_pinctrl *pinctrl;
};