Skip to content

Commit c2d12e8

Browse files
rtc: pcf85063: fix pcf85063_clkout_control
pcf85063_clkout_control reads the wrong register but then update the correct one. Reported-by: Janne Terho <[email protected]> Fixes: 8c229ab ("rtc: pcf85063: Add pcf85063 clkout control to common clock framework") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 103c14d commit c2d12e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/rtc/rtc-pcf85063.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ static int pcf85063_clkout_control(struct clk_hw *hw, bool enable)
424424
unsigned int buf;
425425
int ret;
426426

427-
ret = regmap_read(pcf85063->regmap, PCF85063_REG_OFFSET, &buf);
427+
ret = regmap_read(pcf85063->regmap, PCF85063_REG_CTRL2, &buf);
428428
if (ret < 0)
429429
return ret;
430430
buf &= PCF85063_REG_CLKO_F_MASK;

0 commit comments

Comments
 (0)