aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/staging/greybus/sdio.c
diff options
context:
space:
mode:
authorPhong Tran <tranmanphong@gmail.com>2015-06-26 21:05:12 +0700
committerGreg Kroah-Hartman <gregkh@google.com>2015-06-29 18:06:08 -0700
commit9b86bdf96ef79e5e286628cb2e3ea6639db71904 (patch)
tree864d8b4fd8f3e969e06dc5c409d573fc6f0f0b3a /drivers/staging/greybus/sdio.c
parentgreybus: sdio: remove the redefine of sdio major and minor (diff)
downloadwireguard-linux-9b86bdf96ef79e5e286628cb2e3ea6639db71904.tar.xz
wireguard-linux-9b86bdf96ef79e5e286628cb2e3ea6639db71904.zip
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/sdio.c b/drivers/staging/greybus/sdio.c
index 16abf7cafd90..cf12592d3468 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);
}