VIDEO: amba clcd: don't disable an already disabled clock
Fix the clock enable/disable tracking in the AMBA CLCD driver so that the driver doesn't try to disable an already disabled clock, thereby causing the clock (if shared) to become unbalanced. This resolves a problem with CLCD on LPC32xx ARM platforms. Reported-by: Kevin Wells <wellsk40@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
		
					parent
					
						
							
								41e2e8fd34
							
						
					
				
			
			
				commit
				
					
						99c796df94
					
				
			
		
					 2 changed files with 9 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -150,6 +150,7 @@ struct clcd_fb {
 | 
			
		|||
	u16			off_cntl;
 | 
			
		||||
	u32			clcd_cntl;
 | 
			
		||||
	u32			cmap[16];
 | 
			
		||||
	bool			clk_enabled;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
static inline void clcdfb_decode(struct clcd_fb *fb, struct clcd_regs *regs)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue