/* * Voteable clock functions */ static int local_vote_clk_reset(struct clk *c, enum clk_reset_action action) { struct local_vote_clk *vclk = to_local_vote_clk(c); if (!vclk->bcr_reg) { WARN("clk_reset called on an unsupported clock (%s)\n", c->dbg_name); return -EPERM; } return __branch_clk_reset(BCR_REG(vclk), action); }
static int branch_clk_reset(struct clk *c, enum clk_reset_action action) { struct branch_clk *branch = to_branch_clk(c); if (!branch->bcr_reg) { WARN("clk_reset called on an unsupported clock (%s)\n", c->dbg_name); return -EPERM; } return __branch_clk_reset(BCR_REG(branch), action); }
/* * Voteable clock functions */ static int local_vote_clk_reset(struct clk *c, enum clk_reset_action action) { struct local_vote_clk *vclk = to_local_vote_clk(c); return __branch_clk_reset(BCR_REG(vclk), action, c->dbg_name); }
static int branch_clk_reset(struct clk *c, enum clk_reset_action action) { struct branch_clk *branch = to_branch_clk(c); return __branch_clk_reset(BCR_REG(branch), action, c->dbg_name); }