diff options
author | Balaji T K <balajitk@ti.com> | 2014-05-09 12:46:49 -0400 |
---|---|---|
committer | Chris Ball <chris@printf.net> | 2014-05-22 08:40:41 -0400 |
commit | e1538ed7db6a5258936a1a982d3f103293f388a6 (patch) | |
tree | 49c795692d109bfe657336421339e5ebeda5db6e /drivers/mmc | |
parent | 9618195e5a152dc23d72b99673832835e91c90bb (diff) |
mmc: omap_hsmmc: use devm_request_irq
With devm_request_irq conversion free_irq can be removed in clean up path
Signed-off-by: Balaji T K <balajitk@ti.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <chris@printf.net>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/omap_hsmmc.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index b8ae7ee0f3af..ef7e48a7ce0c 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c | |||
@@ -2017,7 +2017,7 @@ static int omap_hsmmc_probe(struct platform_device *pdev) | |||
2017 | } | 2017 | } |
2018 | 2018 | ||
2019 | /* Request IRQ for MMC operations */ | 2019 | /* Request IRQ for MMC operations */ |
2020 | ret = request_irq(host->irq, omap_hsmmc_irq, 0, | 2020 | ret = devm_request_irq(&pdev->dev, host->irq, omap_hsmmc_irq, 0, |
2021 | mmc_hostname(mmc), host); | 2021 | mmc_hostname(mmc), host); |
2022 | if (ret) { | 2022 | if (ret) { |
2023 | dev_err(mmc_dev(host->mmc), "Unable to grab HSMMC IRQ\n"); | 2023 | dev_err(mmc_dev(host->mmc), "Unable to grab HSMMC IRQ\n"); |
@@ -2028,7 +2028,7 @@ static int omap_hsmmc_probe(struct platform_device *pdev) | |||
2028 | if (pdata->init(&pdev->dev) != 0) { | 2028 | if (pdata->init(&pdev->dev) != 0) { |
2029 | dev_err(mmc_dev(host->mmc), | 2029 | dev_err(mmc_dev(host->mmc), |
2030 | "Unable to configure MMC IRQs\n"); | 2030 | "Unable to configure MMC IRQs\n"); |
2031 | goto err_irq_cd_init; | 2031 | goto err_irq; |
2032 | } | 2032 | } |
2033 | } | 2033 | } |
2034 | 2034 | ||
@@ -2095,8 +2095,6 @@ err_irq_cd: | |||
2095 | err_reg: | 2095 | err_reg: |
2096 | if (host->pdata->cleanup) | 2096 | if (host->pdata->cleanup) |
2097 | host->pdata->cleanup(&pdev->dev); | 2097 | host->pdata->cleanup(&pdev->dev); |
2098 | err_irq_cd_init: | ||
2099 | free_irq(host->irq, host); | ||
2100 | err_irq: | 2098 | err_irq: |
2101 | if (host->tx_chan) | 2099 | if (host->tx_chan) |
2102 | dma_release_channel(host->tx_chan); | 2100 | dma_release_channel(host->tx_chan); |
@@ -2129,7 +2127,6 @@ static int omap_hsmmc_remove(struct platform_device *pdev) | |||
2129 | omap_hsmmc_reg_put(host); | 2127 | omap_hsmmc_reg_put(host); |
2130 | if (host->pdata->cleanup) | 2128 | if (host->pdata->cleanup) |
2131 | host->pdata->cleanup(&pdev->dev); | 2129 | host->pdata->cleanup(&pdev->dev); |
2132 | free_irq(host->irq, host); | ||
2133 | if (mmc_slot(host).card_detect_irq) | 2130 | if (mmc_slot(host).card_detect_irq) |
2134 | free_irq(mmc_slot(host).card_detect_irq, host); | 2131 | free_irq(mmc_slot(host).card_detect_irq, host); |
2135 | 2132 | ||