]> Git Repo - u-boot.git/blobdiff - drivers/mmc/iproc_sdhci.c
common: Drop asm/global_data.h from common header
[u-boot.git] / drivers / mmc / iproc_sdhci.c
index 9f530638e31308c6745fc62966bcdd4cf72448fa..6e4f527e5d83d07bc0d0abcd509433008d1bf354 100644 (file)
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <malloc.h>
 #include <sdhci.h>
+#include <asm/global_data.h>
 #include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -172,7 +173,7 @@ struct iproc_sdhci_plat {
 static int iproc_sdhci_probe(struct udevice *dev)
 {
        struct mmc_uclass_priv *upriv = dev_get_uclass_priv(dev);
-       struct iproc_sdhci_plat *plat = dev_get_platdata(dev);
+       struct iproc_sdhci_plat *plat = dev_get_plat(dev);
        struct sdhci_host *host = dev_get_priv(dev);
        struct sdhci_iproc_host *iproc_host;
        int node = dev_of_offset(dev);
@@ -230,7 +231,7 @@ static int iproc_sdhci_probe(struct udevice *dev)
 
 static int iproc_sdhci_bind(struct udevice *dev)
 {
-       struct iproc_sdhci_plat *plat = dev_get_platdata(dev);
+       struct iproc_sdhci_plat *plat = dev_get_plat(dev);
 
        return sdhci_bind(dev, &plat->mmc, &plat->cfg);
 }
@@ -247,6 +248,6 @@ U_BOOT_DRIVER(iproc_sdhci_drv) = {
        .ops = &sdhci_ops,
        .bind = iproc_sdhci_bind,
        .probe = iproc_sdhci_probe,
-       .priv_auto_alloc_size = sizeof(struct sdhci_host),
-       .platdata_auto_alloc_size = sizeof(struct iproc_sdhci_plat),
+       .priv_auto      = sizeof(struct sdhci_host),
+       .plat_auto      = sizeof(struct iproc_sdhci_plat),
 };
This page took 0.029681 seconds and 4 git commands to generate.