bg_ptr->clk_rate = clk_rate;
if (OMAP_BANDGAP_HAS(bg_ptr, CLK_CTRL))
- clk_enable(bg_ptr->fclock);
+ clk_prepare_enable(bg_ptr->fclock);
mutex_init(&bg_ptr->bg_mutex);
disable_clk:
if (OMAP_BANDGAP_HAS(bg_ptr, CLK_CTRL))
- clk_disable(bg_ptr->fclock);
+ clk_disable_unprepare(bg_ptr->fclock);
put_clks:
clk_put(bg_ptr->fclock);
clk_put(bg_ptr->div_clk);
omap_bandgap_power(bg_ptr, false);
if (OMAP_BANDGAP_HAS(bg_ptr, CLK_CTRL))
- clk_disable(bg_ptr->fclock);
+ clk_disable_unprepare(bg_ptr->fclock);
clk_put(bg_ptr->fclock);
clk_put(bg_ptr->div_clk);
omap_bandgap_power(bg_ptr, false);
if (OMAP_BANDGAP_HAS(bg_ptr, CLK_CTRL))
- clk_disable(bg_ptr->fclock);
+ clk_disable_unprepare(bg_ptr->fclock);
return err;
}
struct omap_bandgap *bg_ptr = dev_get_drvdata(dev);
if (OMAP_BANDGAP_HAS(bg_ptr, CLK_CTRL))
- clk_enable(bg_ptr->fclock);
+ clk_prepare_enable(bg_ptr->fclock);
omap_bandgap_power(bg_ptr, true);