]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dmaengine: xilinx: xdma: Fix regmap init error handling
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Tue, 14 Oct 2025 06:13:08 +0000 (08:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Apr 2026 11:25:54 +0000 (13:25 +0200)
commit59f6ccd0f3345be2e8a78bdef2103e93f180633a
tree2c7901832778f4084e984893da80a86d3c802263
parent11337b872553f658d51705980aa6cc19bb969b49
dmaengine: xilinx: xdma: Fix regmap init error handling

[ Upstream commit e0adbf74e2a0455a6bc9628726ba87bcd0b42bf8 ]

devm_regmap_init_mmio returns an ERR_PTR() upon error, not NULL.
Fix the error check and also fix the error message. Use the error code
from ERR_PTR() instead of the wrong value in ret.

Fixes: 17ce252266c7 ("dmaengine: xilinx: xdma: Add xilinx xdma driver")
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20251014061309.283468-1-alexander.stein@ew.tq-group.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/xilinx/xdma.c