mmc: sdhci: Avoid STOP cmd triggering warning in sdhci_send_command()
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 29 Jun 2016 13:24:37 +0000 (16:24 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Jul 2016 08:34:45 +0000 (10:34 +0200)
commit8842fd17b655c19fa2f50cae5924b35769411da5
tree13b9a2044e6b0f769a385d593f2d5cb6a13eab81
parent33a57adb6be38fbf008e4cdbf6c7085ed269bd3c
mmc: sdhci: Avoid STOP cmd triggering warning in sdhci_send_command()

The STOP command is sent in error conditions, even when the command is
not finished. Avoid triggering the warning for that in sdhci_send_command()
by setting host->cmd to NULL first.

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