From: Phong Tran Date: Fri, 26 Jun 2015 14:05:12 +0000 (+0700) Subject: greybus: sdio: change the order of remove and free mmc host X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9b86bdf96ef79e5e286628cb2e3ea6639db71904;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Reviewed-by: Rui Miguel Silva Reviewed-by: Mark Greer Signed-off-by: Greg Kroah-Hartman --- 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); }