diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2011-05-27 11:48:12 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-07-20 17:16:06 -0400 |
commit | 85d6509dc8ca24b2b652863ef7a75622ddca17d6 (patch) | |
tree | e564c2d4f80478027abc96cb7d87da952b38409e /drivers/mmc/host/Makefile | |
parent | 3a5c3743f15f27237ab025736a981e2d0c9fdfed (diff) |
mmc: sdhci: make sdhci-pltfm device drivers self registered
The patch turns the common stuff in sdhci-pltfm.c into functions, and
add device drivers their own .probe and .remove which in turn call
into the common functions, so that those sdhci-pltfm device drivers
register itself and keep all device specific things away from common
sdhci-pltfm file.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Reviewed-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Anton Vorontsov <cbouatmailru@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/Makefile')
-rw-r--r-- | drivers/mmc/host/Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/mmc/host/Makefile b/drivers/mmc/host/Makefile index 58a5cf73d6e9..732ec1e2a3d0 100644 --- a/drivers/mmc/host/Makefile +++ b/drivers/mmc/host/Makefile | |||
@@ -44,12 +44,14 @@ 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-platform.o | 47 | obj-$(CONFIG_MMC_SDHCI_CNS3XXX) += sdhci-cns3xxx.o |
48 | sdhci-platform-y := sdhci-pltfm.o | 48 | sdhci-cns3xxx-objs := sdhci-pltfm.o |
49 | sdhci-platform-$(CONFIG_MMC_SDHCI_CNS3XXX) += sdhci-cns3xxx.o | 49 | obj-$(CONFIG_MMC_SDHCI_ESDHC_IMX) += sdhci-esdhc-imx.o |
50 | sdhci-platform-$(CONFIG_MMC_SDHCI_ESDHC_IMX) += sdhci-esdhc-imx.o | 50 | sdhci-esdhc-imx-objs := sdhci-pltfm.o |
51 | sdhci-platform-$(CONFIG_MMC_SDHCI_DOVE) += sdhci-dove.o | 51 | obj-$(CONFIG_MMC_SDHCI_DOVE) += sdhci-dove.o |
52 | sdhci-platform-$(CONFIG_MMC_SDHCI_TEGRA) += sdhci-tegra.o | 52 | sdhci-dove-objs := sdhci-pltfm.o |
53 | obj-$(CONFIG_MMC_SDHCI_TEGRA) += sdhci-tegra.o | ||
54 | sdhci-tegra-objs := sdhci-pltfm.o | ||
53 | 55 | ||
54 | obj-$(CONFIG_MMC_SDHCI_OF) += sdhci-of.o | 56 | obj-$(CONFIG_MMC_SDHCI_OF) += sdhci-of.o |
55 | sdhci-of-y := sdhci-of-core.o | 57 | sdhci-of-y := sdhci-of-core.o |