2024-04-08 13:21:22

by Arnd Bergmann

[permalink] [raw]
Subject: [PATCH] soc: mediatek: mtk-socinfo: select CONFIG_SOC_BUS

From: Arnd Bergmann <[email protected]>

This is needed to avoid a link failure:

ERROR: modpost: "soc_device_register" [drivers/soc/mediatek/mtk-socinfo.ko] undefined!
ERROR: modpost: "soc_device_unregister" [drivers/soc/mediatek/mtk-socinfo.ko] undefined!

Fixes: 423a54da3c7e ("soc: mediatek: mtk-socinfo: Add driver for getting chip information")
Signed-off-by: Arnd Bergmann <[email protected]>
---
drivers/soc/mediatek/Kconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/soc/mediatek/Kconfig b/drivers/soc/mediatek/Kconfig
index 50c664b65f4d..1b7afb19ccd6 100644
--- a/drivers/soc/mediatek/Kconfig
+++ b/drivers/soc/mediatek/Kconfig
@@ -72,6 +72,7 @@ config MTK_SOCINFO
tristate "MediaTek SoC Information"
default y
depends on NVMEM_MTK_EFUSE
+ select SOC_BUS
help
The MediaTek SoC Information (mtk-socinfo) driver provides
information about the SoC to the userspace including the
--
2.39.2



Subject: Re: [PATCH] soc: mediatek: mtk-socinfo: select CONFIG_SOC_BUS

Il 08/04/24 14:55, Arnd Bergmann ha scritto:
> From: Arnd Bergmann <[email protected]>
>
> This is needed to avoid a link failure:
>
> ERROR: modpost: "soc_device_register" [drivers/soc/mediatek/mtk-socinfo.ko] undefined!
> ERROR: modpost: "soc_device_unregister" [drivers/soc/mediatek/mtk-socinfo.ko] undefined!
>
> Fixes: 423a54da3c7e ("soc: mediatek: mtk-socinfo: Add driver for getting chip information")
> Signed-off-by: Arnd Bergmann <[email protected]>

Reviewed-by: AngeloGioacchino Del Regno <[email protected]>