diff options
author | Sylvain Lesne <lesne@alse-fr.com> | 2016-10-24 18:24:37 +0200 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2016-10-28 11:02:16 +0900 |
commit | f55ae19703ebf3aa19eadb66d6977779675c88d5 (patch) | |
tree | 1a7aac0e1b022785645b8b380e6615705a55b365 /drivers | |
parent | dd399cb736c81b2af70426c2afc9d5e4bac95830 (diff) | |
download | u-boot-imx-f55ae19703ebf3aa19eadb66d6977779675c88d5.zip u-boot-imx-f55ae19703ebf3aa19eadb66d6977779675c88d5.tar.gz u-boot-imx-f55ae19703ebf3aa19eadb66d6977779675c88d5.tar.bz2 |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/socfpga_dw_mmc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/socfpga_dw_mmc.c b/drivers/mmc/socfpga_dw_mmc.c index 5a3a4ff..0a22e58 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), }; |