From: "Madhusudhan Chikkature" <madhu.cr@ti.com>
To: linux-omap@vger.kernel.org
Cc: Jarkko Lavinen <jarkko.lavinen@nokia.com>
Subject: Re: [PATCH] MMC: OMAP: Re-organizing some goto at hsmmc probe
Date: Thu, 21 Aug 2008 18:53:22 +0530 [thread overview]
Message-ID: <01c401c90391$15c17130$LocalHost@wipultra1303> (raw)
In-Reply-To: 1219072400-7814-5-git-send-email-jarkko.lavinen@nokia.com
Hi Jarkko,
I am not clear what this patch is doing? Is it fixing any perticular issue?
Regards,
Madhu
----- Original Message -----
From: "Jarkko Lavinen" <jarkko.lavinen@nokia.com>
To: <linux-omap@vger.kernel.org>
Cc: "Jarkko Lavinen" <jarkko.lavinen@nokia.com>
Sent: Monday, August 18, 2008 8:43 PM
Subject: [PATCH] MMC: OMAP: Re-organizing some goto at hsmmc probe
> Re-organizing some goto at hsmmc probe.
>
> Signed-off-by: Francisco Alecrim <francisco.alecrim@indt.org.br>
> Signed-off-by: Jarkko Lavinen <jarkko.lavinen@nokia.com>
> ---
> drivers/mmc/host/omap_hsmmc.c | 20 +++++++++++---------
> 1 files changed, 11 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
> index f5acf91..824e7e9 100644
> --- a/drivers/mmc/host/omap_hsmmc.c
> +++ b/drivers/mmc/host/omap_hsmmc.c
> @@ -878,7 +878,7 @@ static int __init omap_mmc_probe(struct platform_device *pdev)
> host);
> if (ret) {
> dev_dbg(mmc_dev(host->mmc), "Unable to grab HSMMC IRQ\n");
> - goto irq_err;
> + goto err_irq;
> }
>
> /* Request IRQ for card detect */
> @@ -888,18 +888,17 @@ static int __init omap_mmc_probe(struct platform_device *pdev)
> host);
> if (ret) {
> dev_dbg(mmc_dev(host->mmc),
> - "Unable to grab MMC CD IRQ");
> - free_irq(host->irq, host);
> - goto irq_err;
> + "Unable to grab MMC CD IRQ\n");
> + goto err_irq_cd;
> }
> }
>
> INIT_WORK(&host->mmc_carddetect_work, mmc_omap_detect);
> if (pdata->init != NULL) {
> if (pdata->init(&pdev->dev) != 0) {
> - free_irq(mmc_slot(host).card_detect_irq, host);
> - free_irq(host->irq, host);
> - goto irq_err;
> + dev_dbg(mmc_dev(host->mmc),
> + "Unable to configure MMC IRQs\n");
> + goto err_irq_cd_init;
> }
> }
>
> @@ -911,8 +910,11 @@ static int __init omap_mmc_probe(struct platform_device *pdev)
>
> return 0;
>
> -irq_err:
> - dev_dbg(mmc_dev(host->mmc), "Unable to configure MMC IRQs\n");
> +err_irq_cd_init:
> + free_irq(mmc_slot(host).card_detect_irq, host);
> +err_irq_cd:
> + free_irq(host->irq, host);
> +err_irq:
> clk_disable(host->fclk);
> clk_disable(host->iclk);
> clk_put(host->fclk);
> --
> 1.5.6.3
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
next prev parent reply other threads:[~2008-08-21 13:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-18 15:13 HSMMC pending fixes Jarkko Lavinen
2008-08-18 15:13 ` [PATCH] OMAP: HSMMC: Check wether board specific suspend / resume exists Jarkko Lavinen
2008-08-18 15:13 ` [PATCH] MMC: OMAP: Disable smartidle mode while suspending (workaround) Jarkko Lavinen
2008-08-18 15:13 ` [PATCH] MMC: OMAP: Readable output for IRQ status register Jarkko Lavinen
2008-08-18 15:13 ` [PATCH] MMC: OMAP: Re-organizing some goto at hsmmc probe Jarkko Lavinen
2008-08-18 15:13 ` [PATCH] MMC: OMAP: Add slot_name entry to sysfs Jarkko Lavinen
2008-08-18 15:13 ` [PATCH] MMC: Add sysfs file cover_switch Jarkko Lavinen
2008-08-21 13:23 ` Madhusudhan Chikkature [this message]
2008-08-18 21:07 ` HSMMC pending fixes Woodruff, Richard
2008-09-11 0:05 ` Tony Lindgren
2008-09-11 4:13 ` Madhusudhan Chikkature
2008-09-12 17:58 ` Tony Lindgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='01c401c90391$15c17130$LocalHost@wipultra1303' \
--to=madhu.cr@ti.com \
--cc=jarkko.lavinen@nokia.com \
--cc=linux-omap@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox