Re: [PATCH] mmc: sdhci: change sdhci-pltfm into a module
From: Wolfram Sang <hidden>
Date: 2011-06-05 06:56:56
Also in:
linux-mmc, lkml
Attachments
- signature.asc [application/pgp-signature] 198 bytes
From: Wolfram Sang <hidden>
Date: 2011-06-05 06:56:56
Also in:
linux-mmc, lkml
On Thu, Jun 02, 2011 at 10:57:50AM +0800, Shawn Guo wrote:
From: Shawn Guo <redacted> There are a couple of problems left from the sdhci pltfm and OF consolidation changes. * When building more than one sdhci-pltfm based drivers in the same image, linker will give multiple definition error on the sdhci-pltfm helper functions. For example right now, building sdhci-of-esdhc and sdhci-of-hlwd together is a valid combination from Kconfig view. * With the current build method, there is error with building the drivers as module, but module installation fails with modprobe. The patch fixes above problems by changing sdhci-pltfm into a module. To avoid EXPORT_SYMBOL on so many big endian IO accessors, it moves these accessors into sdhci-pltfm.h as the 'static inline' functions. As a result, sdhci.h needs to be included in sdhci-pltfm.h, and in turn can be removed from individual drivers which already include sdhci-pltfm.h. Signed-off-by: Shawn Guo <redacted>
I am a bit confused how to review this patch and patch 1/4 from Shawn's original series. As Chris does rebase his mmc-next anyway, does it make sense to squash this into the old ones to prevent the broken inbetween state? Regards, Wolfram -- Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ |