msm: clock: Migrate to clkdev
Migrating to clkdev has several advantages: * Less code in mach-msm/clock.c * A more robust clk_get() implementation * clk_add_alias() support * clk_get_sys() support In general, this will help board authors setup clock aliases and break the dependency on device pointers in the clock tables. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: David Brown <davidb@codeaurora.org>
This commit is contained in:

committed by
David Brown

parent
2a52220c89
commit
bd32344a6b
@@ -126,13 +126,15 @@ extern struct clk_ops clk_ops_pcom;
|
||||
int pc_clk_reset(unsigned id, enum clk_reset_action action);
|
||||
|
||||
#define CLK_PCOM(clk_name, clk_id, clk_dev, clk_flags) { \
|
||||
.name = clk_name, \
|
||||
.id = P_##clk_id, \
|
||||
.remote_id = P_##clk_id, \
|
||||
.ops = &clk_ops_pcom, \
|
||||
.flags = clk_flags, \
|
||||
.dev = clk_dev, \
|
||||
.dbg_name = #clk_id, \
|
||||
.con_id = clk_name, \
|
||||
.dev_id = clk_dev, \
|
||||
.clk = &(struct clk){ \
|
||||
.id = P_##clk_id, \
|
||||
.remote_id = P_##clk_id, \
|
||||
.ops = &clk_ops_pcom, \
|
||||
.flags = clk_flags, \
|
||||
.dbg_name = #clk_id, \
|
||||
}, \
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user