diff options
author | Tero Kristo <t-kristo@ti.com> | 2017-02-09 15:45:45 +0300 |
---|---|---|
committer | Tero Kristo <t-kristo@ti.com> | 2017-03-08 14:04:06 +0300 |
commit | 6dbde94756adb14fe1e3516249cb8eee725bd5e0 (patch) | |
tree | 8d7206c84927d96a139153653afdb19832bfbfff /drivers/clk/ti/gate.c | |
parent | d83bc5b69f2f86ac8354cdb8bbf1b56f34c4ddee (diff) | |
download | linux-6dbde94756adb14fe1e3516249cb8eee725bd5e0.tar.xz |
clk: ti: divider: convert TI divider clock to use its own data representation
Instead of using the generic clock driver data struct, use one internal
for the TI clock driver itself. This allows modifying the register access
parts in subsequent patch.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'drivers/clk/ti/gate.c')
-rw-r--r-- | drivers/clk/ti/gate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/ti/gate.c b/drivers/clk/ti/gate.c index 5ff62e2c63d0..a65f0827f605 100644 --- a/drivers/clk/ti/gate.c +++ b/drivers/clk/ti/gate.c @@ -62,7 +62,7 @@ static const struct clk_ops omap_gate_clk_hsdiv_restore_ops = { */ static int omap36xx_gate_clk_enable_with_hsdiv_restore(struct clk_hw *hw) { - struct clk_divider *parent; + struct clk_omap_divider *parent; struct clk_hw *parent_hw; u32 dummy_v, orig_v; int ret; @@ -72,7 +72,7 @@ static int omap36xx_gate_clk_enable_with_hsdiv_restore(struct clk_hw *hw) /* Parent is the x2 node, get parent of parent for the m2 div */ parent_hw = clk_hw_get_parent(clk_hw_get_parent(hw)); - parent = to_clk_divider(parent_hw); + parent = to_clk_omap_divider(parent_hw); /* Restore the dividers */ if (!ret) { |