]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] ARM: OMAP: Fix mmc driver no_switch error path
authorKomal Shah <komal_shah802003@yahoo.com>
Tue, 5 Sep 2006 15:42:50 +0000 (18:42 +0300)
committerTony Lindgren <tony@atomide.com>
Tue, 5 Sep 2006 15:42:50 +0000 (18:42 +0300)
Fix mmc driver no_switch error path

Signed-off-by: Komal Shah <komal_shah802003@yahoo.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/mmc/omap.c

index 0f1f99bb9de9367dd4bc50440fd255b70849aac4..ae08a37f9c1b8416711a03fff87112f997a431be 100644 (file)
@@ -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))