dm: dvfs: don't print fail message when there is no device

Change-Id: I8ec8920972261e8009dfd9306d8ab898460a71df
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2019-03-26 11:29:19 +08:00
parent a90f2861de
commit c5449fd30c
2 changed files with 4 additions and 2 deletions

View File

@ -15,7 +15,8 @@ static int do_dvfs(cmd_tbl_t *cmdtp, int flag,
ret = uclass_get_device(UCLASS_DVFS, 0, &dev);
if (ret) {
printf("DVFS: Get dvfs device failed, ret=%d\n", ret);
if (ret != -ENODEV)
printf("DVFS: Get dvfs device failed, ret=%d\n", ret);
return ret;
}

View File

@ -34,7 +34,8 @@ int dvfs_init(bool apply)
ret = uclass_get_device(UCLASS_DVFS, 0, &dev);
if (ret) {
printf("DVFS: Get dvfs device failed, ret=%d\n", ret);
if (ret != -ENODEV)
printf("DVFS: Get dvfs device failed, ret=%d\n", ret);
return ret;
}