diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2011-05-27 11:48:14 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-07-20 17:20:47 -0400 |
commit | 38576af1f8cad48446df47dcf404b197c9206dba (patch) | |
tree | 2e35c4fe4588b95febfb4430bbf784b5634b216d /drivers/mmc/host/Makefile | |
parent | e307148fd4f971cecfaebb516ee28e164948a24b (diff) |
mmc: sdhci: make sdhci-of device drivers self registered
The patch turns the sdhci-of-core common stuff into helper functions
added into sdhci-pltfm.c, and makes sdhci-of device drviers self
registered using the same pair of .probe and .remove used by
sdhci-pltfm device drivers.
As a result, sdhci-of-core.c and sdhci-of.h can be eliminated with
those common things merged into sdhci-pltfm.c and sdhci-pltfm.h
respectively.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Anton Vorontsov <cbouatmailru@gmail.com>
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/Makefile')
-rw-r--r-- | drivers/mmc/host/Makefile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/mmc/host/Makefile b/drivers/mmc/host/Makefile index 732ec1e2a3d0..cbd89c310146 100644 --- a/drivers/mmc/host/Makefile +++ b/drivers/mmc/host/Makefile | |||
@@ -52,11 +52,10 @@ obj-$(CONFIG_MMC_SDHCI_DOVE) += sdhci-dove.o | |||
52 | sdhci-dove-objs := sdhci-pltfm.o | 52 | sdhci-dove-objs := sdhci-pltfm.o |
53 | obj-$(CONFIG_MMC_SDHCI_TEGRA) += sdhci-tegra.o | 53 | obj-$(CONFIG_MMC_SDHCI_TEGRA) += sdhci-tegra.o |
54 | sdhci-tegra-objs := sdhci-pltfm.o | 54 | sdhci-tegra-objs := sdhci-pltfm.o |
55 | 55 | obj-$(CONFIG_MMC_SDHCI_OF_ESDHC) += sdhci-of-esdhc.o | |
56 | obj-$(CONFIG_MMC_SDHCI_OF) += sdhci-of.o | 56 | sdhci-of-esdhc-objs := sdhci-pltfm.o |
57 | sdhci-of-y := sdhci-of-core.o | 57 | obj-$(CONFIG_MMC_SDHCI_OF_HLWD) += sdhci-of-hlwd.o |
58 | sdhci-of-$(CONFIG_MMC_SDHCI_OF_ESDHC) += sdhci-of-esdhc.o | 58 | sdhci-of-hlwd-objs := sdhci-pltfm.o |
59 | sdhci-of-$(CONFIG_MMC_SDHCI_OF_HLWD) += sdhci-of-hlwd.o | ||
60 | 59 | ||
61 | ifeq ($(CONFIG_CB710_DEBUG),y) | 60 | ifeq ($(CONFIG_CB710_DEBUG),y) |
62 | CFLAGS-cb710-mmc += -DDEBUG | 61 | CFLAGS-cb710-mmc += -DDEBUG |