[PATCH v2 09/46] mmc: Add mmc_dev()
Sean Anderson
seanga2 at gmail.com
Tue Sep 15 16:44:45 CEST 2020
This macro is necessary for arasan_zynqmp_dll_reset to compile.
Signed-off-by: Sean Anderson <seanga2 at gmail.com>
---
Changes in v2:
- New
include/mmc.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/mmc.h b/include/mmc.h
index 82562193cc..75bcaaf6b3 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -888,6 +888,8 @@ void mmc_set_preinit(struct mmc *mmc, int preinit);
#define mmc_host_is_spi(mmc) 0
#endif
+#define mmc_dev(x) ((x)->dev)
+
void board_mmc_power_init(void);
int board_mmc_init(struct bd_info *bis);
int cpu_mmc_init(struct bd_info *bis);
--
2.28.0
More information about the U-Boot
mailing list