A positive value is for the number of clocks obtained if assigned. Signed-off-by: Shawn Lin <shawn.lin@xxxxxxxxxxxxxx> --- drivers/ufs/host/ufs-rockchip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.7.4