From: Komal Shah Date: Tue, 5 Sep 2006 15:42:50 +0000 (+0300) Subject: [PATCH] ARM: OMAP: Fix mmc driver no_switch error path X-Git-Tag: v2.6.18-omap1~88^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1eee43329dbdbf86a1af43fa18ce563bced4e6fb;p=linux-2.6-omap-h63xx.git [PATCH] ARM: OMAP: Fix mmc driver no_switch error path Fix mmc driver no_switch error path Signed-off-by: Komal Shah Signed-off-by: Tony Lindgren --- diff --git a/drivers/mmc/omap.c b/drivers/mmc/omap.c index 0f1f99bb9de..ae08a37f9c1 100644 --- a/drivers/mmc/omap.c +++ b/drivers/mmc/omap.c @@ -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))