mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	rtc: pcf8563: fix output clock rate
The pcf8563_clkout_recalc_rate function erroneously ignores the
frequency index read from the CLKO register and always returns
32768 Hz.
Fixes: a39a6405d5 ("rtc: pcf8563: add CLKOUT to common clock framework")
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
			
			
This commit is contained in:
		
							parent
							
								
									804a6cfeb5
								
							
						
					
					
						commit
						a3350f9c57
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -422,7 +422,7 @@ static unsigned long pcf8563_clkout_recalc_rate(struct clk_hw *hw,
 | 
				
			||||||
		return 0;
 | 
							return 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	buf &= PCF8563_REG_CLKO_F_MASK;
 | 
						buf &= PCF8563_REG_CLKO_F_MASK;
 | 
				
			||||||
	return clkout_rates[ret];
 | 
						return clkout_rates[buf];
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static long pcf8563_clkout_round_rate(struct clk_hw *hw, unsigned long rate,
 | 
					static long pcf8563_clkout_round_rate(struct clk_hw *hw, unsigned long rate,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue