mmc: sh_mmcif: fix use after free

A recent commit "mmc: sh_mmcif: fix clock management" has introduced a
use after free bug in sh_mmcif.c: in sh_mmcif_remove() the call to
mmc_free_host() frees private driver data, therefore using it afterwards
is a bug. Revert that hunk.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: stable@vger.kernel.org [3.6]
Signed-off-by: Chris Ball <cjb@laptop.org>

authored by Guennadi Liakhovetski and committed by Chris Ball a0d28ba0 90b3e6c5

+1 -1
+1 -1
drivers/mmc/host/sh_mmcif.c
··· 1466 1466 1467 1467 platform_set_drvdata(pdev, NULL); 1468 1468 1469 + clk_disable(host->hclk); 1469 1470 mmc_free_host(host->mmc); 1470 1471 pm_runtime_put_sync(&pdev->dev); 1471 - clk_disable(host->hclk); 1472 1472 pm_runtime_disable(&pdev->dev); 1473 1473 1474 1474 return 0;