Commit 9b86bdf9 authored by Phong Tran's avatar Phong Tran Committed by Greg Kroah-Hartman

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: default avatarPhong Tran <tranmanphong@gmail.com>
Reviewed-by: default avatarRui Miguel Silva <rui.silva@linaro.org>
Reviewed-by: default avatarMark Greer <mgreer@animalcreek.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 153f4784
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment