On Sun, Aug 6, 2017 at 12:26 PM, Srinivas Kandagatla
> On 04/08/17 23:10, Arnd Bergmann wrote:
>> How about linking the DML code into the mmci module and making that
>> Kconfig option a 'bool'?
> Yes, I think making this bool and exporting the two symbols should fix this.
> It does not make sense to make dml helpers a module anyway.
> If it sounds okay, I can send a proper patch to fix this.
I would say making dml a 'bool' option is not ok unless you also change
the Makefile to link it into the same module as the base mmci driver.
The alternative is to export the symbols and then always build the
dml code as a module when the mmci driver is a module, as below.
Or even just move all the code into the base driver, and call it only
using an if(IS_ENABLED()) check for the bool symbol.
diff --git a/drivers/mmc/host/Makefile b/drivers/mmc/host/Makefile
index 8c46766c000c..5c996cba9f25 100644
@@ -3,7 +3,9 @@
obj-$(CONFIG_MMC_ARMMMCI) += mmci.o
-obj-$(CONFIG_MMC_QCOM_DML) += mmci_qcom_dml.o
+obj-$(CONFIG_MMC_ARMMMCI) += mmci_qcom_dml.o
obj-$(CONFIG_MMC_PXA) += pxamci.o
obj-$(CONFIG_MMC_MXC) += mxcmmc.o
obj-$(CONFIG_MMC_MXS) += mxs-mmc.o