mmc: core: use card->ocr when negotiating voltage setting in mmc_sdio_power_restore
authorNeilBrown <neilb@suse.de>
Wed, 12 Nov 2014 03:55:19 +0000 (14:55 +1100)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 26 Nov 2014 13:30:58 +0000 (14:30 +0100)
commit59b6c9e0ad9f2578ff8b2ef8c718bcb8b895fefb
tree2526932e169e153e42329c8306054f7253a4a750
parenta5eb8bbd66ccf9f169419f9652544aec771b7c57
mmc: core: use card->ocr when negotiating voltage setting in mmc_sdio_power_restore

As we are restoring power to a known card, it makes sense to use
the 'ocr' value known for the card rather than the generic one
for the host interface.
This matches the use of card->ocr passed to mmc_power_up in
mmc_sdio_runtime_resume  (just before mmc_sdio_power_restore is
called), and the value passed to mmc_sdio_init_card() a little
later in mmc_sdio_power_restore().

Suggested-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/sdio.c