mmc: sh_mmcif: Move dev_err() of mmcif_timeout_work()
authorKouichi Tomita <kouichi.tomita.yn@renesas.com>
Sun, 15 Feb 2015 14:46:47 +0000 (23:46 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 23 Mar 2015 13:13:43 +0000 (14:13 +0100)
commit4cbd52246533d1dc6449ef8278e95e5e0944a1e5
treea39b28d9c9521da3fdeafd758f4df9f735387582
parentdaa3054f5772b14dd073a2b95fd0353faec0fcc5
mmc: sh_mmcif: Move dev_err() of mmcif_timeout_work()

If interruption of command already occurred, mrq pointer in dev_err()
would refer to NULL, because the host-state is changed to STATE_IDLE
and mrq pointer is changed to NULL by interrupt handler.
Therefore dev_err is moved after checking STATE_IDLE.

Signed-off-by: Kouichi Tomita <kouichi.tomita.yn@renesas.com>
Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sh_mmcif.c
This page took 0.024106 seconds and 5 git commands to generate.