@@ -150,7 +150,7 @@ static struct file_operations bridge_fops = {
#ifdef CONFIG_PM
static u32 time_out = 1000;
#ifdef CONFIG_BRIDGE_DVFS
-static struct clk *clk_handle;
+static struct clk *iva2_clk;
s32 dsp_max_opps = VDD1_OPP5;
#endif
@@ -306,11 +306,11 @@ static int __devinit omap34_xx_bridge_probe(struct platform_device *pdev)
for (i = 0; i < 6; i++)
pdata->mpu_speed[i] = vdd1_rate_table_bridge[i].rate;
- clk_handle = clk_get(NULL, "iva2_ck");
- if (!clk_handle)
+ iva2_clk = clk_get(NULL, "iva2_ck");
+ if (!iva2_clk)
pr_err("%s: clk_get failed to get iva2_ck\n", __func__);
- if (clk_notifier_register(clk_handle, &iva_clk_notifier))
+ if (clk_notifier_register(iva2_clk, &iva_clk_notifier))
pr_err("%s: clk_notifier_register failed for iva2_ck\n",
__func__);
#endif
@@ -346,7 +346,7 @@ static int __devexit omap34_xx_bridge_remove(struct platform_device *pdev)
goto func_cont;
#ifdef CONFIG_BRIDGE_DVFS
- if (clk_notifier_unregister(clk_handle, &iva_clk_notifier))
+ if (clk_notifier_unregister(iva2_clk, &iva_clk_notifier))
pr_err("%s: clk_notifier_unregister failed for iva2_ck\n",
__func__);
#endif /* #ifdef CONFIG_BRIDGE_DVFS */
@@ -358,8 +358,8 @@ static int __devexit omap34_xx_bridge_remove(struct platform_device *pdev)
DBC_ASSERT(ret == true);
}
#ifdef CONFIG_BRIDGE_DVFS
- clk_put(clk_handle);
- clk_handle = NULL;
+ clk_put(iva2_clk);
+ iva2_clk = NULL;
#endif /* #ifdef CONFIG_BRIDGE_DVFS */
func_cont: