From 1eee43329dbdbf86a1af43fa18ce563bced4e6fb Mon Sep 17 00:00:00 2001 From: Komal Shah Date: Tue, 5 Sep 2006 18:42:50 +0300 Subject: [PATCH] [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 --- drivers/mmc/omap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) -- 2.41.1