dvfs: rockchip: if can not get regulator, set regulator=NULL
authorXiao Feng <xf@rock-chips.com>
Thu, 18 Jun 2015 07:39:19 +0000 (15:39 +0800)
committerXiao Feng <xf@rock-chips.com>
Thu, 18 Jun 2015 07:42:21 +0000 (15:42 +0800)
Signed-off-by: Xiao Feng <xf@rock-chips.com>
arch/arm/mach-rockchip/dvfs.c

index 8e0c48354ed4f17e309407345d1f31882284426e..d9d060dd011ebed92daff7158f2aef084af3e507 100644 (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);