]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Sep 2023 10:22:49 +0000 (12:22 +0200)
commit42d8c7fa0bf66ce285147cf8b051440899a71963
treeaa98536ee070b6ea1f9c421ae1d99feaeba67438
parent329d0f168c8f7fc6a417303375ed563a5f2bb844
dmaengine: ste_dma40: Add missing IRQ check in d40_probe

[ Upstream commit c05ce6907b3d6e148b70f0bb5eafd61dcef1ddc1 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/ste_dma40.c