arm64: imx: Fix build error without CONFIG_SOC_BUS
authorYueHaibing <yuehaibing@huawei.com>
Wed, 24 Apr 2019 09:15:17 +0000 (17:15 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 20 May 2019 01:12:20 +0000 (09:12 +0800)
During randconfig builds, I occasionally run into an invalid configuration

drivers/soc/imx/soc-imx8.o: In function `imx8_soc_init':
soc-imx8.c:(.init.text+0x144): undefined reference to `soc_device_register'

while CONFIG_SOC_BUS is not set, the building failed like this. This patch
selects SOC_BUS to fix it.

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: a7e26f356ca1 ("soc: imx: Add generic i.MX8 SoC driver")
Suggested-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/Kconfig.platforms

index 42eca65..bec7878 100644 (file)
@@ -167,6 +167,7 @@ config ARCH_MXC
        select IMX_GPCV2_PM_DOMAINS
        select PM
        select PM_GENERIC_DOMAINS
+       select SOC_BUS
        help
          This enables support for the ARMv8 based SoCs in the
          NXP i.MX family.