pinctrl: lochnagar: Don't build on MIPS
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Wed, 15 Nov 2023 16:28:53 +0000 (16:28 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 16 Nov 2023 13:40:38 +0000 (14:40 +0100)
MIPS appears to define a RST symbol at a high level, which clashes
with some register naming in the driver. Since there is currently
no case for running this driver on MIPS devices simply cut off the
build of this driver on MIPS.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202311071303.JJMAOjy4-lkp@intel.com/
Suggested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20231115162853.1891940-1-ckeepax@opensource.cirrus.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/cirrus/Kconfig

index d6318cb57aff2ab336e21b9209db9336225119d0..e7e827a8877a0e83f6d05ff4327dcbc0da0c2132 100644 (file)
@@ -12,7 +12,8 @@ config PINCTRL_CS42L43
 
 config PINCTRL_LOCHNAGAR
        tristate "Cirrus Logic Lochnagar pinctrl driver"
-       depends on MFD_LOCHNAGAR
+       # Avoid clash caused by MIPS defining RST, which is used in the driver
+       depends on MFD_LOCHNAGAR && !MIPS
        select GPIOLIB
        select PINMUX
        select PINCONF