mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	spi: fsl-dspi: add missing clk_disable_unprepare() in dspi_remove()
clock source is prepared and enabled by clk_prepare_enable() in probe function, but no disable or unprepare in remove. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
		
							parent
							
								
									b444d1dfe2
								
							
						
					
					
						commit
						05209f4570
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -536,6 +536,7 @@ static int dspi_remove(struct platform_device *pdev)
 | 
			
		|||
 | 
			
		||||
	/* Disconnect from the SPI framework */
 | 
			
		||||
	spi_bitbang_stop(&dspi->bitbang);
 | 
			
		||||
	clk_disable_unprepare(dspi->clk);
 | 
			
		||||
	spi_master_put(dspi->bitbang.master);
 | 
			
		||||
 | 
			
		||||
	return 0;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue