pinctrl: renesas: Reintroduce SH_PFC for common sh-pfc code
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 9 Sep 2020 13:15:34 +0000 (15:15 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 15 Sep 2020 08:04:35 +0000 (10:04 +0200)
commit540d9757cea8274a44d69cbadcff5b8c381bae8d
tree670add1f0573caa1b83cf5a0bb3f16e48db39ec4
parent077365a941166f3a7f5894017f9d26d17cdec00e
pinctrl: renesas: Reintroduce SH_PFC for common sh-pfc code

Most, but not all, Renesas pin control drivers use the "sh-pfc" pin
control framework.  As of commit 8449bfa9e6a9f7ec ("pinctrl: sh-pfc:
Collect Renesas related CONFIGs in one place"), the code for this
framework is always built when Renesas SoC pin control support is
enabled, regardless of whether the enabled pin control drivers need it
or not.

Fix this by reintroducing the CONFIG_SH_PFC symbol to control inclusion
of the "sh-pfc" framework and its dependencies, and selecting it when
needed.

This reduces kernel size of a typical RZ/A1 or RZ/A2 kernel by more than
6 resp. 11 KiB.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20200909131534.12897-4-geert+renesas@glider.be
drivers/pinctrl/renesas/Kconfig
drivers/pinctrl/renesas/Makefile