mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 16:12:59 +02:00
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 <shawn.lin@rock-chips.com> Link: https://lore.kernel.org/r/1740552733-182527-1-git-send-email-shawn.lin@rock-chips.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
24e81b8217
commit
4fffffd3b1
|
|
@ -171,7 +171,7 @@ static int ufs_rockchip_common_init(struct ufs_hba *hba)
|
|||
"failed to get reset gpio\n");
|
||||
|
||||
err = devm_clk_bulk_get_all_enabled(dev, &host->clks);
|
||||
if (err)
|
||||
if (err < 0)
|
||||
return dev_err_probe(dev, err, "failed to enable clocks\n");
|
||||
|
||||
host->hba = hba;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user