dm: treewide: Rename 'platdata' variables to just 'plat'
[platform/kernel/u-boot.git] / drivers / net / smc911x.c
index 1fa3667..648932d 100644 (file)
@@ -6,7 +6,6 @@
  */
 
 #include <common.h>
-#include <env.h>
 #include <command.h>
 #include <malloc.h>
 #include <net.h>
@@ -186,8 +185,6 @@ static void smc911x_handle_mac_address(struct smc911x_priv *priv)
        smc911x_set_mac_csr(priv, ADDRH, addrh);
 
        printf(DRIVERNAME ": MAC %pM\n", m);
-       if (!env_get("ethaddr"))
-               env_set("ethaddr", (const char *)m);
 }
 
 static bool smc911x_read_mac_address(struct smc911x_priv *priv)
@@ -642,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