mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-03 21:48:15 +00:00 
			
		
		
		
	dm: mmc: socfpga: fix MMC_OPS support
Now that CONFIG_BLK and CONFIG_MMC_OPS are enabled by default with CONFIG_DM_MMC, the DWMMC driver on the socfpga platform fails at runtime. This adds the missing fields in the driver declaration. Signed-off-by: Sylvain Lesne <lesne@alse-fr.com> Acked-by: Marek Vasut <marex@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
		
							parent
							
								
									bdef7876ad
								
							
						
					
					
						commit
						4f9378cf67
					
				@ -151,7 +151,9 @@ U_BOOT_DRIVER(socfpga_dwmmc_drv) = {
 | 
				
			|||||||
	.id		= UCLASS_MMC,
 | 
						.id		= UCLASS_MMC,
 | 
				
			||||||
	.of_match	= socfpga_dwmmc_ids,
 | 
						.of_match	= socfpga_dwmmc_ids,
 | 
				
			||||||
	.ofdata_to_platdata = socfpga_dwmmc_ofdata_to_platdata,
 | 
						.ofdata_to_platdata = socfpga_dwmmc_ofdata_to_platdata,
 | 
				
			||||||
 | 
						.ops		= &dm_dwmci_ops,
 | 
				
			||||||
	.bind		= socfpga_dwmmc_bind,
 | 
						.bind		= socfpga_dwmmc_bind,
 | 
				
			||||||
	.probe		= socfpga_dwmmc_probe,
 | 
						.probe		= socfpga_dwmmc_probe,
 | 
				
			||||||
	.priv_auto_alloc_size = sizeof(struct dwmci_socfpga_priv_data),
 | 
						.priv_auto_alloc_size = sizeof(struct dwmci_socfpga_priv_data),
 | 
				
			||||||
 | 
						.platdata_auto_alloc_size = sizeof(struct socfpga_dwmci_plat),
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user