Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: TMIO: Use devm_request_irq()

Clean up resource allocation and freeing.

Signed-off-by: Ian Molton <ian.molton@codethink.co.uk>
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Ian Molton and committed by
Ulf Hansson
de501af9 7df56bbb

+2 -2
+2 -2
drivers/mmc/host/tmio_mmc.c
··· 103 103 if (ret) 104 104 goto host_free; 105 105 106 - ret = request_irq(irq, tmio_mmc_irq, IRQF_TRIGGER_FALLING, 106 + ret = devm_request_irq(&pdev->dev, irq, tmio_mmc_irq, 107 + IRQF_TRIGGER_FALLING, 107 108 dev_name(&pdev->dev), host); 108 109 if (ret) 109 110 goto host_remove; ··· 132 131 133 132 if (mmc) { 134 133 struct tmio_mmc_host *host = mmc_priv(mmc); 135 - free_irq(platform_get_irq(pdev, 0), host); 136 134 tmio_mmc_host_remove(host); 137 135 if (cell->disable) 138 136 cell->disable(pdev);