summaryrefslogtreecommitdiff
path: root/drivers/clk/clk-fixed-factor.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-07-02 09:53:34 -0400
committerTom Rini <trini@konsulko.com>2020-07-02 09:53:34 -0400
commit785195941b0746ac987a0ca501dae3e570b9f042 (patch)
tree317f4d937fb80de27123a1d18adc29ad5bf9337c /drivers/clk/clk-fixed-factor.c
parente2a4d24e6b1f3d30136e2dde7b6fbf35bd427b8a (diff)
parentadd0dc1f7de91112d9e738f9482b09b75fa86acb (diff)
Merge branch 'next' of https://gitlab.denx.de/u-boot/custodians/u-boot-riscv into next
- Add Sipeed Maix support - Update clock handler and proper cpu features
Diffstat (limited to 'drivers/clk/clk-fixed-factor.c')
-rw-r--r--drivers/clk/clk-fixed-factor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c
index 2ceb6bb171..0eb24b87fc 100644
--- a/drivers/clk/clk-fixed-factor.c
+++ b/drivers/clk/clk-fixed-factor.c
@@ -20,8 +20,7 @@
static ulong clk_factor_recalc_rate(struct clk *clk)
{
- struct clk_fixed_factor *fix =
- to_clk_fixed_factor(dev_get_clk_ptr(clk->dev));
+ struct clk_fixed_factor *fix = to_clk_fixed_factor(clk);
unsigned long parent_rate = clk_get_parent_rate(clk);
unsigned long long int rate;