pinctrl: bcm: add OF dependencies
authorArnd Bergmann <arnd@arndb.de>
Fri, 15 Jul 2016 20:29:54 +0000 (22:29 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 22 Jul 2016 14:43:32 +0000 (16:43 +0200)
commit53056f59398b6ff84d82be148d862fb2039befa7
treea640734e67fd62487ab63c253f88074f6fa93e8c
parent8bf0bd4173f256278894cf709fc02c184b85640c
pinctrl: bcm: add OF dependencies

Building without CONFIG_OF gives us these warnings for the broadcom
pinctrl drivers:

drivers/pinctrl/bcm/pinctrl-nsp-mux.c:356:20: error: 'pinconf_generic_dt_node_to_map_group' undeclared here (not in a function)
drivers/pinctrl/bcm/pinctrl-cygnus-mux.c:739:20: error: 'pinconf_generic_dt_node_to_map_group' undeclared here (not in a function)

The function is only available when CONFIG_OF is set, so we should add
a Kconfig dependency for both drivers.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: cc4fa83f66e9 ("pinctrl: nsp: add pinmux driver support for Broadcom NSP SoC")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/bcm/Kconfig