]> Git Repo - J-u-boot.git/blobdiff - drivers/mmc/tangier_sdhci.c
command: Remove the cmd_tbl_t typedef
[J-u-boot.git] / drivers / mmc / tangier_sdhci.c
index 77b18e75f08a8cffdd66190306d80d6d5e8bdc20..0d6e5d62460b375c7b0a16934fd78a623e82a340 100644 (file)
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (c) 2017 Intel Corporation
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 #include <common.h>
 #include <dm.h>
@@ -36,7 +35,7 @@ static int sdhci_tangier_probe(struct udevice *dev)
        fdt_addr_t base;
        int ret;
 
-       base = dev_get_addr(dev);
+       base = devfdt_get_addr(dev);
        if (base == FDT_ADDR_T_NONE)
                return -EINVAL;
 
@@ -52,13 +51,14 @@ static int sdhci_tangier_probe(struct udevice *dev)
        /* MMC_VDD_32_33 | MMC_VDD_33_34 | MMC_VDD_165_195 */
        host->voltages = MMC_VDD_165_195;
 
+       host->mmc = &plat->mmc;
+       host->mmc->dev = dev;
        ret = sdhci_setup_cfg(&plat->cfg, host, SDHCI_TANGIER_FMAX,
                        SDHCI_TANGIER_FMIN);
        if (ret)
                return ret;
 
        upriv->mmc = &plat->mmc;
-       host->mmc = &plat->mmc;
        host->mmc->priv = host;
 
        return sdhci_probe(dev);
This page took 0.021493 seconds and 4 git commands to generate.