[U-Boot] [i.MX8MM+CCF 02/41] clk: fixed-factor: fix get clk_fixed_factor

Peng Fan
2019-04-30T10:17:36Z

driver data is not clk, not clk_fixed_factor, fix it.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
drivers/clk/clk-fixed-factor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c
index acbc0909b4..c535aadc48 100644
--- a/drivers/clk/clk-fixed-factor.c
+++ b/drivers/clk/clk-fixed-factor.c
@@ -19,7 +19,7 @@
static ulong clk_factor_recalc_rate(struct clk *clk)
{
struct clk_fixed_factor *fix =
- (struct clk_fixed_factor *)dev_get_driver_data(clk->dev);
+ to_clk_fixed_factor((struct clk *)dev_get_driver_data(clk->dev));
unsigned long parent_rate = clk_get_parent_rate(clk);
unsigned long long int rate;

--
2.16.4