remarkable-linux/drivers/pinctrl/tegra
Axel Lin 19b5a91764 pinctrl: tegra: Fix build dependency
I got below build error:
ERROR: "tegra_xusb_padctl_legacy_probe"
 [drivers/phy/tegra/phy-tegra-xusb.ko] undefined!
with below build configuration:
CONFIG_ARCH_TEGRA=y
CONFIG_PINCTRL_TEGRA_XUSB=y
CONFIG_PHY_TEGRA_XUSB=y

The problem is below line in drivers/pinctrl/Makefile
obj-$(CONFIG_PINCTRL_TEGRA)     += tegra/

So even CONFIG_PINCTRL_TEGRA_XUSB=y is set, kbuild still does not compile
the code in drivers/pinctrl/tegra folder if !CONFIG_PINCTRL_TEGRA.

phy-tegra-xusb.c does not use any symbol from pinctrl-tegra.c,
so build pinctrl-tegra.c only when CONFIG_PINCTRL_TEGRA is set.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2016-06-22 17:58:07 +02:00
..
Kconfig pinctrl: tegra: move Tegra pinctrl drivers to sub-directory 2016-02-05 15:16:43 +01:00
Makefile pinctrl: tegra: Fix build dependency 2016-06-22 17:58:07 +02:00
pinctrl-tegra-xusb.c Pin control bulk changes for the v4.7 kernel cycle: 2016-05-19 12:50:56 -07:00
pinctrl-tegra.c Revert "pinctrl: tegra: avoid parked_reg and parked_bank" 2016-05-13 02:45:04 +02:00
pinctrl-tegra.h Revert "pinctrl: tegra: avoid parked_reg and parked_bank" 2016-05-13 02:45:04 +02:00
pinctrl-tegra20.c Revert "pinctrl: tegra: avoid parked_reg and parked_bank" 2016-05-13 02:45:04 +02:00
pinctrl-tegra30.c Revert "pinctrl: tegra: avoid parked_reg and parked_bank" 2016-05-13 02:45:04 +02:00
pinctrl-tegra114.c Revert "pinctrl: tegra: avoid parked_reg and parked_bank" 2016-05-13 02:45:04 +02:00
pinctrl-tegra124.c Revert "pinctrl: tegra: avoid parked_reg and parked_bank" 2016-05-13 02:45:04 +02:00
pinctrl-tegra210.c Revert "pinctrl: tegra: avoid parked_reg and parked_bank" 2016-05-13 02:45:04 +02:00