Skip to content

Commit 4fffffd

Browse files
shawn1221martinkpetersen
authored andcommitted
scsi: ufs: rockchip: Fix devm_clk_bulk_get_all_enabled() return value
A positive value is for the number of clocks obtained if assigned. Signed-off-by: Shawn Lin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 24e81b8 commit 4fffffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ufs/host/ufs-rockchip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ static int ufs_rockchip_common_init(struct ufs_hba *hba)
171171
"failed to get reset gpio\n");
172172

173173
err = devm_clk_bulk_get_all_enabled(dev, &host->clks);
174-
if (err)
174+
if (err < 0)
175175
return dev_err_probe(dev, err, "failed to enable clocks\n");
176176

177177
host->hba = hba;

0 commit comments

Comments
 (0)