From: Sylvain Lesne Date: Mon, 24 Oct 2016 16:24:37 +0000 (+0200) Subject: dm: mmc: socfpga: fix MMC_OPS support X-Git-Tag: v2016.11-rc3~34^2~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f55ae19703ebf3aa19eadb66d6977779675c88d5;p=oweals%2Fu-boot.git 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 Acked-by: Marek Vasut Reviewed-by: Simon Glass --- diff --git a/drivers/mmc/socfpga_dw_mmc.c b/drivers/mmc/socfpga_dw_mmc.c index 5a3a4ff403..0a22e58295 100644 --- a/drivers/mmc/socfpga_dw_mmc.c +++ b/drivers/mmc/socfpga_dw_mmc.c @@ -151,7 +151,9 @@ U_BOOT_DRIVER(socfpga_dwmmc_drv) = { .id = UCLASS_MMC, .of_match = socfpga_dwmmc_ids, .ofdata_to_platdata = socfpga_dwmmc_ofdata_to_platdata, + .ops = &dm_dwmci_ops, .bind = socfpga_dwmmc_bind, .probe = socfpga_dwmmc_probe, .priv_auto_alloc_size = sizeof(struct dwmci_socfpga_priv_data), + .platdata_auto_alloc_size = sizeof(struct socfpga_dwmci_plat), };