From: Kouichi Tomita Date: Sun, 15 Feb 2015 14:46:47 +0000 (+0900) Subject: mmc: sh_mmcif: Move dev_err() of mmcif_timeout_work() X-Git-Tag: omap-for-v4.1/fixes-rc1~178^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cbd52246533d1dc6449ef8278e95e5e0944a1e5;p=pandora-kernel.git 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 Signed-off-by: Yoshihiro Kaneko Signed-off-by: Ulf Hansson --- Reading git-diff-tree failed