forked from mirrors/linux
		
	mmc: sdhci-of-arasan: Call OF parsing for MMC
Also check MMC OF properties. The controller supports MMC too. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
		
							parent
							
								
									e30b978f17
								
							
						
					
					
						commit
						16b23787fc
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -173,6 +173,12 @@ static int sdhci_arasan_probe(struct platform_device *pdev)
 | 
			
		|||
	pltfm_host->priv = sdhci_arasan;
 | 
			
		||||
	pltfm_host->clk = clk_xin;
 | 
			
		||||
 | 
			
		||||
	ret = mmc_of_parse(host->mmc);
 | 
			
		||||
	if (ret) {
 | 
			
		||||
		dev_err(&pdev->dev, "parsing dt failed (%u)\n", ret);
 | 
			
		||||
		goto clk_disable_all;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	ret = sdhci_add_host(host);
 | 
			
		||||
	if (ret)
 | 
			
		||||
		goto err_pltfm_free;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue