mmc: core: Clean up after mmc_pre_req if card was removed
authorUlf Hansson <ulf.hansson@stericsson.com>
Mon, 5 Mar 2012 14:52:43 +0000 (15:52 +0100)
committerChris Ball <cjb@laptop.org>
Tue, 27 Mar 2012 16:20:04 +0000 (12:20 -0400)
commit956d9fd5eb3cbb322440844ed341145707bd71f8
tree8ad90a2718b202c4bee5fee7366fca715820a62b
parent907d2e7cc7ebba4ab398422a7f0435e1802be65b
mmc: core: Clean up after mmc_pre_req if card was removed

Make sure mmc_start_req cancels the prepared job, if the request
was prevented to be started due to the card has been removed.

This bug was introduced in commit:
mmc: allow upper layers to know immediately if card has been removed

Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com>
Reviewed-by: Per Forlin <per.forlin@stericsson.com>
Tested-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/core.c