mmc: tmio: always get number of taps
authorMasaharu Hayakawa <masaharu.hayakawa.ry@renesas.com>
Fri, 17 Mar 2017 09:04:50 +0000 (10:04 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:41:41 +0000 (21:41 +0200)
commit43b0b361b0170030603cf76f70b099f3323edcf3
treeb14e7452377af0314677042828968590f5ba4bb2
parent5f07ef8f603ace496ca8c20eef446c5ae7a10474
mmc: tmio: always get number of taps

Current code gets number of taps only once and keeps the value. This is
not correct, we need to obtain it every time before executing tuning,
so remove the outer if-block.

Signed-off-by: Masaharu Hayakawa <masaharu.hayakawa.ry@renesas.com>
[wsa: extracted from a larger patch and reworded commit message]
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/tmio_mmc_pio.c