mmc: dw_mmc: use mmc_regulator_get_supply to handle regulators
authorYuvaraj CD <yuvaraj.cd@gmail.com>
Fri, 22 Aug 2014 13:47:50 +0000 (19:17 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 9 Sep 2014 11:59:18 +0000 (13:59 +0200)
commit51da2240906cb94e8f6ba55e403b6206df6fb2dd
tree8e8cc8e4a99b0fcd533dc2a9c6df1b0232bb8ced
parentcc8aa7de48277f62fe3fced762d75f01ce57e909
mmc: dw_mmc: use mmc_regulator_get_supply to handle regulators

This patch makes use of mmc_regulator_get_supply() to handle
the vmmc and vqmmc regulators.Also it moves the code handling
the these regulators to dw_mci_set_ios().It turned on the vmmc
and vqmmc during MMC_POWER_UP and MMC_POWER_ON,and turned off
during MMC_POWER_OFF.

Signed-off-by: Yuvaraj Kumar C D <yuvaraj.cd@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc.c
include/linux/mmc/dw_mmc.h