mmc: sdhci: put together into one condition checking
authorJaehoon Chung <jh80.chung@samsung.com>
Fri, 7 Oct 2016 05:08:43 +0000 (14:08 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 29 Nov 2016 08:00:27 +0000 (09:00 +0100)
commit273c5414e3a4465733fa55c9070692c724bf6726
tree86c81a390f24cc0ebc0d0c6ff9cbaa4dc4a92e67
parente5517c2a5a49ed5e99047008629f1cd60246ea0e
mmc: sdhci: put together into one condition checking

value of ios->timing is not related with SDCHI v3.0.  If Controller version
is v3.0, SDHCI_QUIRK_NO_HISPD_BIT is meaningless.  To prevent the setting
wrong bit moves into one condition checking.  (e.g sdhci-s3c doesn't use
SDHCI_CTRL_HISPD bit, instead using this bit as other purpose.)

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c