dvfs: rockchip: if can not get regulator, set regulator=NULL

Signed-off-by: Xiao Feng <xf@rock-chips.com>
This commit is contained in:
Xiao Feng
2015-06-18 15:39:19 +08:00
parent 1831cf8089
commit d2c7fdf68a

View File

@@ -1501,6 +1501,7 @@ int clk_enable_dvfs(struct dvfs_node *clk_dvfs_node)
dvfs_get_vd_regulator_volt_list(clk_dvfs_node->vd);
dvfs_vd_get_regulator_volt_time_info(clk_dvfs_node->vd);
} else {
clk_dvfs_node->vd->regulator = NULL;
clk_dvfs_node->enable_count = 0;
DVFS_ERR("%s: vd(%s) can't get regulator(%s)!\n",
__func__, clk_dvfs_node->vd->name, clk_dvfs_node->vd->regulator_name);