sunxi: mmc: group non-DM specific functions
[platform/kernel/u-boot.git] / drivers / mmc / snps_dw_mmc.c
index 4b468a1..50a8805 100644 (file)
@@ -76,7 +76,7 @@ clk_err:
        return ret;
 }
 
-static int snps_dwmmc_ofdata_to_platdata(struct udevice *dev)
+static int snps_dwmmc_of_to_plat(struct udevice *dev)
 {
        struct snps_dwmci_priv_data *priv = dev_get_priv(dev);
        struct dwmci_host *host = &priv->host;
@@ -132,7 +132,7 @@ struct dm_mmc_ops snps_dwmci_dm_ops;
 static int snps_dwmmc_probe(struct udevice *dev)
 {
 #ifdef CONFIG_BLK
-       struct snps_dwmci_plat *plat = dev_get_platdata(dev);
+       struct snps_dwmci_plat *plat = dev_get_plat(dev);
 #endif
        struct mmc_uclass_priv *upriv = dev_get_uclass_priv(dev);
        struct snps_dwmci_priv_data *priv = dev_get_priv(dev);
@@ -171,7 +171,7 @@ static int snps_dwmmc_probe(struct udevice *dev)
 static int snps_dwmmc_bind(struct udevice *dev)
 {
 #ifdef CONFIG_BLK
-       struct snps_dwmci_plat *plat = dev_get_platdata(dev);
+       struct snps_dwmci_plat *plat = dev_get_plat(dev);
        int ret;
 
        ret = dwmci_bind(dev, &plat->mmc, &plat->cfg);
@@ -191,10 +191,10 @@ U_BOOT_DRIVER(snps_dwmmc_drv) = {
        .name                           = "snps_dw_mmc",
        .id                             = UCLASS_MMC,
        .of_match                       = snps_dwmmc_ids,
-       .ofdata_to_platdata             = snps_dwmmc_ofdata_to_platdata,
+       .of_to_plat             = snps_dwmmc_of_to_plat,
        .ops                            = &snps_dwmci_dm_ops,
        .bind                           = snps_dwmmc_bind,
        .probe                          = snps_dwmmc_probe,
-       .priv_auto_alloc_size           = sizeof(struct snps_dwmci_priv_data),
-       .platdata_auto_alloc_size       = sizeof(struct snps_dwmci_plat),
+       .priv_auto              = sizeof(struct snps_dwmci_priv_data),
+       .plat_auto      = sizeof(struct snps_dwmci_plat),
 };