aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2018-01-26 16:42:03 -0800
committerStephen Boyd <sboyd@codeaurora.org>2018-01-26 16:43:14 -0800
commit716d9b1d4a88493ec3e52957cc1026d32534ee67 (patch)
treef1f9c9d73a5527e23e1a476cb2acbdad9e81f09f /drivers/rtc
parentMerge branches 'clk-iproc', 'clk-mvebu' and 'clk-qcom-a53' into clk-next (diff)
parentclk: divider: fix incorrect usage of container_of (diff)
downloadlinux-dev-716d9b1d4a88493ec3e52957cc1026d32534ee67.tar.xz
linux-dev-716d9b1d4a88493ec3e52957cc1026d32534ee67.zip
Merge branch 'clk-divider-container' into clk-next
* clk-divider-container: clk: divider: fix incorrect usage of container_of Plus fixup sprd/div.c to pass the width too.
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-ac100.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-ac100.c b/drivers/rtc/rtc-ac100.c
index 9e336184491c..0282ccc6181c 100644
--- a/drivers/rtc/rtc-ac100.c
+++ b/drivers/rtc/rtc-ac100.c
@@ -137,13 +137,15 @@ static unsigned long ac100_clkout_recalc_rate(struct clk_hw *hw,
div = (reg >> AC100_CLKOUT_PRE_DIV_SHIFT) &
((1 << AC100_CLKOUT_PRE_DIV_WIDTH) - 1);
prate = divider_recalc_rate(hw, prate, div,
- ac100_clkout_prediv, 0);
+ ac100_clkout_prediv, 0,
+ AC100_CLKOUT_PRE_DIV_WIDTH);
}
div = (reg >> AC100_CLKOUT_DIV_SHIFT) &
(BIT(AC100_CLKOUT_DIV_WIDTH) - 1);
return divider_recalc_rate(hw, prate, div, NULL,
- CLK_DIVIDER_POWER_OF_TWO);
+ CLK_DIVIDER_POWER_OF_TWO,
+ AC100_CLKOUT_DIV_WIDTH);
}
static long ac100_clkout_round_rate(struct clk_hw *hw, unsigned long rate,