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:
parent
a90f2861de
commit
c5449fd30c
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue