diff options
author | Shawn Guo <shawn.guo@freescale.com> | 2011-06-01 22:57:50 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-07-20 17:20:49 -0400 |
commit | f0de836923186e1fc0acb65299c2f2089c7992af (patch) | |
tree | 4cfaf194295559500dee84646af4ded4ba94faf9 /drivers/mmc/host/Makefile | |
parent | 100e918610b7487fa18db97b3879cd8d1fdd5974 (diff) |
mmc: sdhci: change sdhci-pltfm into a module
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 <shawn.guo@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/Makefile')
-rw-r--r-- | drivers/mmc/host/Makefile | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/mmc/host/Makefile b/drivers/mmc/host/Makefile index cbd89c310146..bf479ab5d33d 100644 --- a/drivers/mmc/host/Makefile +++ b/drivers/mmc/host/Makefile | |||
@@ -44,18 +44,13 @@ obj-$(CONFIG_MMC_JZ4740) += jz4740_mmc.o | |||
44 | obj-$(CONFIG_MMC_VUB300) += vub300.o | 44 | obj-$(CONFIG_MMC_VUB300) += vub300.o |
45 | obj-$(CONFIG_MMC_USHC) += ushc.o | 45 | obj-$(CONFIG_MMC_USHC) += ushc.o |
46 | 46 | ||
47 | obj-$(CONFIG_MMC_SDHCI_PLTFM) += sdhci-pltfm.o | ||
47 | obj-$(CONFIG_MMC_SDHCI_CNS3XXX) += sdhci-cns3xxx.o | 48 | obj-$(CONFIG_MMC_SDHCI_CNS3XXX) += sdhci-cns3xxx.o |
48 | sdhci-cns3xxx-objs := sdhci-pltfm.o | ||
49 | obj-$(CONFIG_MMC_SDHCI_ESDHC_IMX) += sdhci-esdhc-imx.o | 49 | obj-$(CONFIG_MMC_SDHCI_ESDHC_IMX) += sdhci-esdhc-imx.o |
50 | sdhci-esdhc-imx-objs := sdhci-pltfm.o | ||
51 | obj-$(CONFIG_MMC_SDHCI_DOVE) += sdhci-dove.o | 50 | obj-$(CONFIG_MMC_SDHCI_DOVE) += sdhci-dove.o |
52 | sdhci-dove-objs := sdhci-pltfm.o | ||
53 | obj-$(CONFIG_MMC_SDHCI_TEGRA) += sdhci-tegra.o | 51 | obj-$(CONFIG_MMC_SDHCI_TEGRA) += sdhci-tegra.o |
54 | sdhci-tegra-objs := sdhci-pltfm.o | ||
55 | obj-$(CONFIG_MMC_SDHCI_OF_ESDHC) += sdhci-of-esdhc.o | 52 | obj-$(CONFIG_MMC_SDHCI_OF_ESDHC) += sdhci-of-esdhc.o |
56 | sdhci-of-esdhc-objs := sdhci-pltfm.o | ||
57 | obj-$(CONFIG_MMC_SDHCI_OF_HLWD) += sdhci-of-hlwd.o | 53 | obj-$(CONFIG_MMC_SDHCI_OF_HLWD) += sdhci-of-hlwd.o |
58 | sdhci-of-hlwd-objs := sdhci-pltfm.o | ||
59 | 54 | ||
60 | ifeq ($(CONFIG_CB710_DEBUG),y) | 55 | ifeq ($(CONFIG_CB710_DEBUG),y) |
61 | CFLAGS-cb710-mmc += -DDEBUG | 56 | CFLAGS-cb710-mmc += -DDEBUG |