diff options
author | Balaji T K <balajitk@ti.com> | 2014-05-09 12:46:50 -0400 |
---|---|---|
committer | Chris Ball <chris@printf.net> | 2014-05-22 08:40:42 -0400 |
commit | 9fa0e05e06d1ab0a2e3bd1e01e71a04f2c520b85 (patch) | |
tree | 6e114cc90f6f26ea1a7f8ffaac55666387fe916a /drivers/mmc | |
parent | e1538ed7db6a5258936a1a982d3f103293f388a6 (diff) |
mmc: omap_hsmmc: use devm_request_threaded_irq
With devm_request_threaded_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 | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index ef7e48a7ce0c..6179fe3ef8ca 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c | |||
@@ -2043,9 +2043,9 @@ static int omap_hsmmc_probe(struct platform_device *pdev) | |||
2043 | 2043 | ||
2044 | /* Request IRQ for card detect */ | 2044 | /* Request IRQ for card detect */ |
2045 | if ((mmc_slot(host).card_detect_irq)) { | 2045 | if ((mmc_slot(host).card_detect_irq)) { |
2046 | ret = request_threaded_irq(mmc_slot(host).card_detect_irq, | 2046 | ret = devm_request_threaded_irq(&pdev->dev, |
2047 | NULL, | 2047 | mmc_slot(host).card_detect_irq, |
2048 | omap_hsmmc_detect, | 2048 | NULL, omap_hsmmc_detect, |
2049 | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING | IRQF_ONESHOT, | 2049 | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING | IRQF_ONESHOT, |
2050 | mmc_hostname(mmc), host); | 2050 | mmc_hostname(mmc), host); |
2051 | if (ret) { | 2051 | if (ret) { |
@@ -2088,7 +2088,6 @@ static int omap_hsmmc_probe(struct platform_device *pdev) | |||
2088 | 2088 | ||
2089 | err_slot_name: | 2089 | err_slot_name: |
2090 | mmc_remove_host(mmc); | 2090 | mmc_remove_host(mmc); |
2091 | free_irq(mmc_slot(host).card_detect_irq, host); | ||
2092 | err_irq_cd: | 2091 | err_irq_cd: |
2093 | if (host->use_reg) | 2092 | if (host->use_reg) |
2094 | omap_hsmmc_reg_put(host); | 2093 | omap_hsmmc_reg_put(host); |
@@ -2127,8 +2126,6 @@ static int omap_hsmmc_remove(struct platform_device *pdev) | |||
2127 | omap_hsmmc_reg_put(host); | 2126 | omap_hsmmc_reg_put(host); |
2128 | if (host->pdata->cleanup) | 2127 | if (host->pdata->cleanup) |
2129 | host->pdata->cleanup(&pdev->dev); | 2128 | host->pdata->cleanup(&pdev->dev); |
2130 | if (mmc_slot(host).card_detect_irq) | ||
2131 | free_irq(mmc_slot(host).card_detect_irq, host); | ||
2132 | 2129 | ||
2133 | if (host->tx_chan) | 2130 | if (host->tx_chan) |
2134 | dma_release_channel(host->tx_chan); | 2131 | dma_release_channel(host->tx_chan); |