Skip to contentSkip to conversation

mmc: mediatek: depend on COMMON_CLK to fix compile tests

PATCH In review Krzysztof Kozlowski 2 participants 2 messages Nov 22, 2020 – Nov 24, 2020

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

PATCH 1/1 mmc: mediatek: depend on COMMON_CLK to fix compile tests

The MFD_OMAP_USB_HOST uses Common Clock Framework thus it cannot be built on platforms without it (e.g. compile test on MIPS with LANTIQ):

mips-linux-ld: drivers/mmc/host/mtk-sd.o: in function `msdc_ops_set_ios':
mtk-sd.c:(.text+0x2bbc): undefined reference to `clk_get_parent'

---
 drivers/mmc/host/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/mmc/host/Kconfig +1 -0
index 310e546e5898..bfe912ec8955 100644
@@ -1023,6 +1023,7 @@ config MMC_BCM2835
 config MMC_MTK
 	tristate "MediaTek SD/MMC Card Interface support"
 	depends on HAS_DMA
+	depends on COMMON_CLK
 	select REGULATOR
 	select MMC_CQHCI
 	help
Signature · 1 line
2.25.1
#1 lore raw
Quoted 9 lines · Krzysztof Kozlowski

The MFD_OMAP_USB_HOST uses Common Clock Framework thus it cannot be built on platforms without it (e.g. compile test on MIPS with LANTIQ):

mips-linux-ld: drivers/mmc/host/mtk-sd.o: in function `msdc_ops_set_ios':
mtk-sd.c:(.text+0x2bbc): undefined reference to `clk_get_parent'

Applied for next, thanks!

Kind regards
Uffe

Quoted 19 lines
---
 drivers/mmc/host/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/mmc/host/Kconfig +1 -1
index 310e546e5898..bfe912ec8955 100644
@@ -1023,6 +1023,7 @@ config MMC_BCM2835
 config MMC_MTK
        tristate "MediaTek SD/MMC Card Interface support"
        depends on HAS_DMA
+       depends on COMMON_CLK
        select REGULATOR
        select MMC_CQHCI
        help
--

2.25.1