]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: mmc: socfpga: fix MMC_OPS support
authorSylvain Lesne <lesne@alse-fr.com>
Mon, 24 Oct 2016 16:24:37 +0000 (18:24 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 28 Oct 2016 02:21:21 +0000 (04:21 +0200)
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>
drivers/mmc/socfpga_dw_mmc.c

index 5a3a4ff4032f4751849af08fdbb8c6c55dff73c0..0a22e582957fc24e00f05c56e956aa1fabfce479 100644 (file)
@@ -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),
 };