pinctrl: mediatek: fix Kconfig build errors for moore core
authorRyder Lee <ryder.lee@mediatek.com>
Wed, 9 Jan 2019 02:13:55 +0000 (10:13 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 11 Jan 2019 14:22:49 +0000 (15:22 +0100)
commit2d2d478576d71000b29c52668c5712c825ee9af8
treeca87acef1ff8236a0e11e110c15ab72ba5800a5d
parentbfeffd155283772bbe78c6a05dec7c0128ee500c
pinctrl: mediatek: fix Kconfig build errors for moore core

on i386 or x86_64:

Lots of build errors for drivers/pinctrl/mediatek/pinctrl-moore.c when
CONFIG_OF is not enabled (but COMPILE_TEST is).

first this:
WARNING: unmet direct dependencies detected for PINCTRL_MTK_MOORE
  Depends on [n]: PINCTRL [=y] && (ARCH_MEDIATEK || COMPILE_TEST [=y])
  && OF [=n]
  Selected by [y]:
  - PINCTRL_MT7623 [=y] && PINCTRL [=y] &&
  (ARCH_MEDIATEK || COMPILE_TEST [=y]) && (MACH_MT7623 || COMPILE_TEST [=y])

and then:
../drivers/pinctrl/mediatek/pinctrl-moore.c:22:44: error: array type has
   incomplete element type
   static const struct pinconf_generic_params mtk_custom_bindings[] = {
(etc)

Fixes: b5af33df50e9 ("pinctrl: mediatek: improve Kconfig dependencies")
Cc: stable@vger.kernel.org
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Acked-by: Sean Wang <sean.wang@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/Kconfig