Commit 1eee4332 authored by Komal Shah's avatar Komal Shah Committed by Tony Lindgren

[PATCH] ARM: OMAP: Fix mmc driver no_switch error path

Fix mmc driver no_switch error path
Signed-off-by: default avatarKomal Shah <komal_shah802003@yahoo.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 59ee52b5
......@@ -1163,8 +1163,9 @@ static int __init mmc_omap_probe(struct platform_device *pdev)
mmc_add_host(mmc);
no_switch:
return 0;
no_switch:
/* FIXME: Free other resources too. */
if (host) {
if (host->iclk && !IS_ERR(host->iclk))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment