Message ID | 1740552733-182527-1-git-send-email-shawn.lin@rock-chips.com |
---|---|
State | New |
Headers | show |
Series | [-next] scsi: ufs: rockchip: Fix devm_clk_bulk_get_all_enabled return value | expand |
diff --git a/drivers/ufs/host/ufs-rockchip.c b/drivers/ufs/host/ufs-rockchip.c index 5b0ea98..c4d561f 100644 --- a/drivers/ufs/host/ufs-rockchip.c +++ b/drivers/ufs/host/ufs-rockchip.c @@ -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;
A positive value is for the number of clocks obtained if assigned. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> --- drivers/ufs/host/ufs-rockchip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)