dmaengine: ste_dma40: Add missing IRQ check in d40_probe
authorruanjinjie <ruanjinjie@huawei.com>
Mon, 24 Jul 2023 14:41:08 +0000 (14:41 +0000)
committerVinod Koul <vkoul@kernel.org>
Mon, 21 Aug 2023 05:42:16 +0000 (11:12 +0530)
commitc05ce6907b3d6e148b70f0bb5eafd61dcef1ddc1
tree24e55068b210a6e5dbff76ddec47eead6094e589
parent1fbda5f4c7c1c8bd51cd3bc3d2ff19176c696b74
dmaengine: ste_dma40: Add missing IRQ check in d40_probe

Check for the return value of platform_get_irq(): if no interrupt
is specified, it wouldn't make sense to call request_irq().

Fixes: 8d318a50b3d7 ("DMAENGINE: Support for ST-Ericssons DMA40 block v3")
Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20230724144108.2582917-1-ruanjinjie@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ste_dma40.c