Skip to content

Commit baf8a33

Browse files
tititiou36smb49
authored andcommitted
dmaengine: mv_xor_v2: Fix an error code.
BugLink: https://bugs.launchpad.net/bugs/2025067 [ Upstream commit 827026a ] If the probe is deferred, -EPROBE_DEFER should be returned, not +EPROBE_DEFER. Fixes: 3cd2c31 ("dmaengine: mv_xor_v2: Fix clock resource by adding a register clock") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/201170dff832a3c496d125772e10070cd834ebf2.1679814350.git.christophe.jaillet@wanadoo.fr Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Kamal Mostafa <kamal@canonical.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
1 parent b30bbe7 commit baf8a33

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/dma/mv_xor_v2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ static int mv_xor_v2_probe(struct platform_device *pdev)
755755

756756
xor_dev->clk = devm_clk_get(&pdev->dev, NULL);
757757
if (PTR_ERR(xor_dev->clk) == -EPROBE_DEFER) {
758-
ret = EPROBE_DEFER;
758+
ret = -EPROBE_DEFER;
759759
goto disable_reg_clk;
760760
}
761761
if (!IS_ERR(xor_dev->clk)) {

0 commit comments

Comments
 (0)