Skip to contentSkip to conversation

clk: mediatek: mt8196: Select REGMAP_MMIO for vlpckgen

PATCH In review Akari Tsuyukusa 3 participants 3 messages May 22 – May 26

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: mediatek: mt8196: Select REGMAP_MMIO for vlpckgen

The MediaTek MT8196 vlpckgen clock driver uses __devm_regmap_init_mmio_clk() by devm_regmap_init_mmio(), which is defined in drivers/base/regmap/regmap-mmio.c. However, the driver's Kconfig entry does not select REGMAP_MMIO. This causes a linker error when REGMAP_MMIO is not enabled.

Fix this by selecting REGMAP_MMIO in the Kconfig entry.

Fixes 2f8b3ae6f0cb ("clk: mediatek: Add MT8196 vlpckgen clock support")
---
 drivers/clk/mediatek/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/mediatek/Kconfig +1 -0
index 2c09fd729bab..fd8440122ec2 100644
@@ -1006,6 +1006,7 @@ config COMMON_CLK_MT8196
 	tristate "Clock driver for MediaTek MT8196"
 	depends on ARM64 || COMPILE_TEST
 	select COMMON_CLK_MEDIATEK
+	select REGMAP_MMIO
 	default ARCH_MEDIATEK
 	help
 	  This driver supports MediaTek MT8196 basic clocks.
Signature · 1 line
2.54.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Akari Tsuyukusa

The MediaTek MT8196 vlpckgen clock driver uses __devm_regmap_init_mmio_clk() by devm_regmap_init_mmio(), which is defined in drivers/base/regmap/regmap-mmio.c. However, the driver's Kconfig entry does not select REGMAP_MMIO. This causes a linker error when REGMAP_MMIO is not enabled.

Fix this by selecting REGMAP_MMIO in the Kconfig entry.

Fixes 2f8b3ae6f0cb ("clk: mediatek: Add MT8196 vlpckgen clock support")
Quoted 16 lines
---
  drivers/clk/mediatek/Kconfig | 1 +
  1 file changed, 1 insertion(+)
drivers/clk/mediatek/Kconfig +1 -0
index 2c09fd729bab..fd8440122ec2 100644
@@ -1006,6 +1006,7 @@ config COMMON_CLK_MT8196
  	tristate "Clock driver for MediaTek MT8196"
  	depends on ARM64 || COMPILE_TEST
  	select COMMON_CLK_MEDIATEK
+	select REGMAP_MMIO
  	default ARCH_MEDIATEK
  	help
  	  This driver supports MediaTek MT8196 basic clocks.
Reviewed-by on v1 1/1
#2 lore raw
In reply to Akari Tsuyukusa
Quoted 11 lines · Akari Tsuyukusa

The MediaTek MT8196 vlpckgen clock driver uses __devm_regmap_init_mmio_clk() by devm_regmap_init_mmio(), which is defined in drivers/base/regmap/regmap-mmio.c. However, the driver's Kconfig entry does not select REGMAP_MMIO. This causes a linker error when REGMAP_MMIO is not enabled.

Fix this by selecting REGMAP_MMIO in the Kconfig entry.

Fixes 2f8b3ae6f0cb ("clk: mediatek: Add MT8196 vlpckgen clock support")