rk: dvfs: fix wrong mutex_unlock on dvfs_get_vd_regulator_volt_list
author黄涛 <huangtao@rock-chips.com>
Fri, 1 Mar 2013 02:21:49 +0000 (10:21 +0800)
committer黄涛 <huangtao@rock-chips.com>
Fri, 1 Mar 2013 02:23:08 +0000 (10:23 +0800)
arch/arm/plat-rk/dvfs.c

index 1b991997c1510b13f7947cc2455230ee5dbc0d36..4f82c153d4c39d1a855a3e3a7ff1443c0ea054c4 100755 (executable)
@@ -106,7 +106,7 @@ static void dvfs_get_vd_regulator_volt_list(struct vd_node *vd)
        if(selector>VD_VOL_LIST_CNT)\r
                selector=VD_VOL_LIST_CNT;\r
        \r
-       mutex_unlock(&mutex);\r
+       mutex_lock(&mutex);\r
        for (i = 0; i<selector; i++) {\r
                sel_volt=dvfs_regulator_list_voltage(vd->regulator,i);\r
                if(sel_volt<=0)\r