mmc: core: Simplify by adding mmc_execute_tuning()
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 5 Dec 2014 17:40:59 +0000 (19:40 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 19 Jan 2015 08:56:30 +0000 (09:56 +0100)
commit63e415c64003fd62a302a1dc19f082e2c6f1b7cc
tree87a6a228a7f2b2fc19c9e3f67b1339181b930f05
parentfdb9de129e1d68e1b804bc9c8b3027bea9b88bc8
mmc: core: Simplify by adding mmc_execute_tuning()

For each MMC, SD and SDIO there is code that
holds the clock, calls ops->execute_tuning, and
releases the clock. Simplify the code a bit by
providing a separate function to do that.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.c
drivers/mmc/core/core.h
drivers/mmc/core/mmc.c
drivers/mmc/core/sd.c
drivers/mmc/core/sdio.c