mmc: dw_mmc: check the "present" variable before checking flags
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 24 Nov 2016 11:04:40 +0000 (20:04 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 5 Dec 2016 09:31:15 +0000 (10:31 +0100)
commit1c238a95a727e8cd3fe1c97a653c4101b8dd39d2
tree95a504281a44f72750cf011bf69c22212bb70df1
parentdf9bcc2bc0a1f8d2963bd916698268fb2470713b
mmc: dw_mmc: check the "present" variable before checking flags

Before checking flags, it has to check "present" variable.
Otherwise, flags should be cleared everytime.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc.c