Revert "mmc: core: Convert mmc_driver to device_driver"
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 14 Apr 2015 11:06:12 +0000 (13:06 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 17 Apr 2015 09:48:01 +0000 (11:48 +0200)
commit96541bac0b4e62efa42e7900d9b32e6baa9a214c
treed8377a74bab6e42d98bfd1a32fc352968d3769d8
parent636efbc66452659840a9a4df1daf80074ee439f6
Revert "mmc: core: Convert mmc_driver to device_driver"

This reverts commit 6685ac62b2f0 ("mmc: core: Convert mmc_driver to
device_driver")

The reverted commit went too far in simplifing the device driver parts
for mmc.

Let's restore the old mmc_driver to enable driver core to sooner
or later to remove the ->probe(), ->remove() and ->shutdown() callbacks
from the struct device_driver.

Note that, the old ->suspend|resume() callbacks in the struct
mmc_driver don't need to be restored, since the mmc block layer has
converted to the modern system PM ops.

Fixes: 6685ac62b2f0 ("mmc: core: Convert mmc_driver to device_driver")
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/card/block.c
drivers/mmc/card/mmc_test.c
drivers/mmc/core/bus.c
include/linux/mmc/card.h