diff options
author | Phong Tran <tranmanphong@gmail.com> | 2015-06-26 21:05:12 +0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-06-29 18:06:08 -0700 |
commit | 9b86bdf96ef79e5e286628cb2e3ea6639db71904 (patch) | |
tree | 864d8b4fd8f3e969e06dc5c409d573fc6f0f0b3a /drivers/staging/greybus/sdio.c | |
parent | 153f4784b428b3b5ef9d43ab9f8fa5322bc3717c (diff) | |
download | op-kernel-dev-9b86bdf96ef79e5e286628cb2e3ea6639db71904.zip op-kernel-dev-9b86bdf96ef79e5e286628cb2e3ea6639db71904.tar.gz |
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>
Diffstat (limited to 'drivers/staging/greybus/sdio.c')
-rw-r--r-- | drivers/staging/greybus/sdio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/sdio.c b/drivers/staging/greybus/sdio.c index 16abf7c..cf12592 100644 --- a/drivers/staging/greybus/sdio.c +++ b/drivers/staging/greybus/sdio.c @@ -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); } |