summaryrefslogtreecommitdiff
path: root/drivers/mmc/omap_hsmmc.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-05-01 13:52:34 -0600
committerSimon Glass <sjg@chromium.org>2016-05-17 09:54:43 -0600
commitcffe5d86cfe853ae9271d37522f8bc5795cc4c69 (patch)
tree1cdf6a6e9740f888957e2c6aba672326989eef1b /drivers/mmc/omap_hsmmc.c
parentb6694a33c45530e4c260c7fd6c77cc8472c9412f (diff)
downloadu-boot-imx-cffe5d86cfe853ae9271d37522f8bc5795cc4c69.zip
u-boot-imx-cffe5d86cfe853ae9271d37522f8bc5795cc4c69.tar.gz
u-boot-imx-cffe5d86cfe853ae9271d37522f8bc5795cc4c69.tar.bz2
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>
Diffstat (limited to 'drivers/mmc/omap_hsmmc.c')
-rw-r--r--drivers/mmc/omap_hsmmc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c
index 85a832b..be34057 100644
--- a/drivers/mmc/omap_hsmmc.c
+++ b/drivers/mmc/omap_hsmmc.c
@@ -825,6 +825,7 @@ static int omap_hsmmc_probe(struct udevice *dev)
gpio_request_by_name(dev, "wp-gpios", 0, &priv->wp_gpio, GPIOD_IS_IN);
#endif
+ mmc->dev = dev;
upriv->mmc = mmc;
return 0;