mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
mmc: omap_hsmmc: fix host reference after mmc_free_host
struct omap_hsmmc_host *host should not be accessed after mmc_free_host(). Reorder mmc_free_host() after iounmap(host->base). Signed-off-by: Balaji T K <[email protected]> Signed-off-by: Venkatraman S <[email protected]> Signed-off-by: Chris Ball <[email protected]>
This commit is contained in:
parent
cb27a843de
commit
9d1f028644
1 changed files with 1 additions and 1 deletions
|
|
@ -2009,8 +2009,8 @@ static int __devexit omap_hsmmc_remove(struct platform_device *pdev)
|
|||
clk_put(host->dbclk);
|
||||
}
|
||||
|
||||
mmc_free_host(host->mmc);
|
||||
iounmap(host->base);
|
||||
mmc_free_host(host->mmc);
|
||||
omap_hsmmc_gpio_free(pdev->dev.platform_data);
|
||||
|
||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue