dmaengine: stm32-dma: use platform_get_irq()
authorFabien Dessenne <fabien.dessenne@st.com>
Wed, 24 Apr 2019 09:21:25 +0000 (11:21 +0200)
committerVinod Koul <vkoul@kernel.org>
Fri, 26 Apr 2019 17:03:34 +0000 (22:33 +0530)
commitf4fd2ec08f17b34f1c7c18414d5fc882efd51e83
treeb29814a2e91e86f3c4ec2e82bd854284e1deee09
parent8a6061c34a54a997db1ded6d89b7db6cbe3f359e
dmaengine: stm32-dma: use platform_get_irq()

platform_get_resource(pdev, IORESOURCE_IRQ) is not recommended for
requesting IRQ's resources, as they can be not ready yet. Using
platform_get_irq() instead is preferred for getting IRQ even if it was
not retrieved earlier.

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Reviewed-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/stm32-dma.c