Skip to content

Commit 2138d1c

Browse files
hiss2018martinkpetersen
authored andcommitted
scsi: ufs: ti-j721e-ufs: Fix error return in ti_j721e_ufs_probe()
Fix to return error code PTR_ERR() from the error handling case instead of 0. Link: https://lore.kernel.org/r/[email protected] Fixes: 22617e2 ("scsi: ufs: ti-j721e-ufs: Fix unwinding of pm_runtime changes") Reviewed-by: Avri Altman <[email protected]> Signed-off-by: Jing Xiangfeng <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 9123e3a commit 2138d1c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/scsi/ufs/ti-j721e-ufs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ static int ti_j721e_ufs_probe(struct platform_device *pdev)
3838
/* Select MPHY refclk frequency */
3939
clk = devm_clk_get(dev, NULL);
4040
if (IS_ERR(clk)) {
41+
ret = PTR_ERR(clk);
4142
dev_err(dev, "Cannot claim MPHY clock.\n");
4243
goto clk_err;
4344
}

0 commit comments

Comments
 (0)