]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
pinctrl: ingenic: Only support SoCs enabled in config
authorPaul Cercueil <paul@crapouillou.net>
Sun, 13 Dec 2020 23:54:47 +0000 (23:54 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 18 Jan 2021 15:13:51 +0000 (16:13 +0100)
commit9aa351784e6962bb1aff97f7badfe028865860fb
tree9bb02f462f0af953ed38f5315fdf8779237142c2
parent1b399bb04837183cecdc1b32ef1cfc7fcfa75d32
pinctrl: ingenic: Only support SoCs enabled in config

Tested on a JZ4740 system (ARCH=mips make qi_lb60_defconfig), this saves
about 14 KiB, by allowing the compiler to garbage-collect all the
functions and tables that correspond to SoCs that were disabled in the
config.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20201213235447.138271-2-paul@crapouillou.net
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-ingenic.c