mmc: sdhci: make sdhci-of device drivers self registered
authorShawn Guo <shawn.guo@linaro.org>
Fri, 27 May 2011 15:48:14 +0000 (23:48 +0800)
committerChris Ball <cjb@laptop.org>
Wed, 20 Jul 2011 21:20:47 +0000 (17:20 -0400)
commit38576af1f8cad48446df47dcf404b197c9206dba
tree2e35c4fe4588b95febfb4430bbf784b5634b216d
parente307148fd4f971cecfaebb516ee28e164948a24b
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>
drivers/mmc/host/Kconfig
drivers/mmc/host/Makefile
drivers/mmc/host/sdhci-of-esdhc.c
drivers/mmc/host/sdhci-of-hlwd.c
drivers/mmc/host/sdhci-of.h [deleted file]
drivers/mmc/host/sdhci-pltfm.c
drivers/mmc/host/sdhci-pltfm.h