if (pd->lock)
spin_lock_irqsave(pd->lock, flags);
- /* ret = rockchip_pmu_ops.set_power_domain(pd->id, enable); */
+ ret = rockchip_pmu_ops.set_power_domain(pd->id, enable);
if (pd->lock)
spin_unlock_irqrestore(pd->lock, flags);
__clk_pd_notify(hw->clk, RK_CLK_PD_POST_DISABLE);
}
-/*
static int clk_pd_is_enabled(struct clk_hw *hw)
{
struct clk_pd *pd = to_clk_pd(hw);
return rockchip_pmu_ops.power_domain_is_on(pd->id);
}
-*/
static int clk_pd_prepare(struct clk_hw *hw)
{
.unprepare = clk_pd_unprepare,
.enable = clk_pd_enable,
.disable = clk_pd_disable,
- /*.is_enabled = clk_pd_is_enabled,*/
+ .is_enabled = clk_pd_is_enabled,
};
static int clk_pd_virt_enable(struct clk_hw *hw)