]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: block: Simplify cleaning up the queue
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 29 Nov 2017 13:40:59 +0000 (15:40 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 11 Dec 2017 11:44:31 +0000 (12:44 +0100)
commitf8121ca3774ea43f2c4c2c2bfddae80c69a10c99
treea2a8fdcdcabf25d49ccf50204ce9502bcf9d5cd5
parent6f9b622257aa6112f83c1fde050be773b81e7f8f
mmc: block: Simplify cleaning up the queue

Use blk_cleanup_queue() to shutdown the queue when the driver is removed,
and instead get an extra reference to the queue to prevent the queue being
freed before the final mmc_blk_put().

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
drivers/mmc/core/block.c
drivers/mmc/core/queue.c