Commit cffe5d86cfe853ae9271d37522f8bc5795cc4c69
dm: mmc: Set up the device pointer when using the MMC uclass
Update the existing drivers to set up this new pointer. This will be required by the MMC uclass. Signed-off-by: Simon Glass <sjg@chromium.org>
Showing 7 changed files with 14 additions and 1 deletions Side-by-side Diff
... | ... | @@ -41,7 +41,12 @@ |
41 | 41 | return ret; |
42 | 42 | } |
43 | 43 | |
44 | - return add_sdhci(host, f_min_max[1], f_min_max[0]); | |
44 | + ret = add_sdhci(host, f_min_max[1], f_min_max[0]); | |
45 | + if (ret) | |
46 | + return ret; | |
47 | + host->mmc->dev = dev; | |
48 | + | |
49 | + return 0; | |
45 | 50 | } |
46 | 51 | |
47 | 52 | static const struct udevice_id pic32_sdhci_ids[] = { |
... | ... | @@ -381,6 +381,9 @@ |
381 | 381 | char init_in_progress; /* 1 if we have done mmc_start_init() */ |
382 | 382 | char preinit; /* start init as early as possible */ |
383 | 383 | int ddr_mode; |
384 | +#ifdef CONFIG_DM_MMC | |
385 | + struct udevice *dev; /* Device for this MMC controller */ | |
386 | +#endif | |
384 | 387 | }; |
385 | 388 | |
386 | 389 | struct mmc_hwpart_conf { |
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c
-
mentioned in commit eb9d3c