dm: treewide: Rename 'platdata' variables to just 'plat'
[platform/kernel/u-boot.git] / drivers / net / smc911x.c
index 053ff9f..648932d 100644 (file)
@@ -455,7 +455,7 @@ static int smc911x_initialize_mii(struct smc911x_priv *priv)
 }
 #endif
 
-static int smc911x_init(struct eth_device *dev, bd_t *bd)
+static int smc911x_init(struct eth_device *dev, struct bd_info *bd)
 {
        struct smc911x_priv *priv = container_of(dev, struct smc911x_priv, dev);
 
@@ -612,7 +612,7 @@ static int smc911x_ofdata_to_platdata(struct udevice *dev)
        struct smc911x_priv *priv = dev_get_priv(dev);
        struct eth_pdata *pdata = dev_get_platdata(dev);
 
-       pdata->iobase = devfdt_get_addr(dev);
+       pdata->iobase = dev_read_addr(dev);
        priv->iobase = pdata->iobase;
 
        return 0;
@@ -639,8 +639,8 @@ U_BOOT_DRIVER(smc911x) = {
        .ofdata_to_platdata = smc911x_ofdata_to_platdata,
        .probe          = smc911x_probe,
        .ops            = &smc911x_ops,
-       .priv_auto_alloc_size = sizeof(struct smc911x_priv),
-       .platdata_auto_alloc_size = sizeof(struct eth_pdata),
+       .priv_auto      = sizeof(struct smc911x_priv),
+       .plat_auto      = sizeof(struct eth_pdata),
        .flags          = DM_FLAG_ALLOC_PRIV_DMA,
 };
 #endif