pinctrl: renesas: checker: Restrict checks to Renesas platforms
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 11 Jan 2021 16:50:13 +0000 (17:50 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 12 Jan 2021 09:45:43 +0000 (10:45 +0100)
commit6dd169fc201d05e8da249ee2eabf1f23b0ccb1e4
treefae0e95de9a25e74b023b3670f92b3092f87558d
parent5c8fe583cce542aa0b84adc939ce85293de36e5e
pinctrl: renesas: checker: Restrict checks to Renesas platforms

When DEBUG is defined (e.g. if CONFIG_DEBUG_PINCTRL=y), the Renesas pin
control driver runs sanity checks against the pin control tables.  This
may cause lots of output on the console, and can be annoying in ARM
multi-platform kernels.  Fix this by only running the checks when
running on SuperH, or on a DT platform supported by the Renesas pin
controller driver.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20210111165013.496897-1-geert+renesas@glider.be
drivers/pinctrl/renesas/core.c