mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
greybus: sdio: change the order of remove and free mmc host
The mmc host should be removed frist. Then it will be freed. Signed-off-by: Phong Tran <tranmanphong@gmail.com> Reviewed-by: Rui Miguel Silva <rui.silva@linaro.org> Reviewed-by: Mark Greer <mgreer@animalcreek.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
153f4784b4
commit
9b86bdf96e
1 changed files with 1 additions and 1 deletions
|
@ -700,8 +700,8 @@ static void gb_sdio_connection_exit(struct gb_connection *connection)
|
|||
|
||||
flush_workqueue(gb_sdio_mrq_workqueue);
|
||||
destroy_workqueue(gb_sdio_mrq_workqueue);
|
||||
mmc_free_host(mmc);
|
||||
mmc_remove_host(mmc);
|
||||
mmc_free_host(mmc);
|
||||
kfree(host->xfer_buffer);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue