]> Git Repo - J-u-boot.git/blobdiff - drivers/net/ethoc.c
ppc: Remove T1023RBD boards and T1024RDB_SECURE_BOOT
[J-u-boot.git] / drivers / net / ethoc.c
index b9d80a5b08a4dfc0e3fdef7c3dab1680bd194ddb..7f146d4c8b4cef742bcb6459d46d5a4a658aaa32 100644 (file)
@@ -647,7 +647,7 @@ static inline int ethoc_phy_init(struct ethoc *priv, void *dev)
 
 static int ethoc_write_hwaddr(struct udevice *dev)
 {
-       struct ethoc_eth_pdata *pdata = dev_get_platdata(dev);
+       struct ethoc_eth_pdata *pdata = dev_get_plat(dev);
        struct ethoc *priv = dev_get_priv(dev);
        u8 *mac = pdata->eth_pdata.enetaddr;
 
@@ -685,9 +685,9 @@ static void ethoc_stop(struct udevice *dev)
        ethoc_stop_common(dev_get_priv(dev));
 }
 
-static int ethoc_ofdata_to_platdata(struct udevice *dev)
+static int ethoc_of_to_plat(struct udevice *dev)
 {
-       struct ethoc_eth_pdata *pdata = dev_get_platdata(dev);
+       struct ethoc_eth_pdata *pdata = dev_get_plat(dev);
        fdt_addr_t addr;
 
        pdata->eth_pdata.iobase = dev_read_addr(dev);
@@ -699,7 +699,7 @@ static int ethoc_ofdata_to_platdata(struct udevice *dev)
 
 static int ethoc_probe(struct udevice *dev)
 {
-       struct ethoc_eth_pdata *pdata = dev_get_platdata(dev);
+       struct ethoc_eth_pdata *pdata = dev_get_plat(dev);
        struct ethoc *priv = dev_get_priv(dev);
 
        priv->iobase = ioremap(pdata->eth_pdata.iobase, ETHOC_IOSIZE);
@@ -746,12 +746,12 @@ U_BOOT_DRIVER(ethoc) = {
        .name                           = "ethoc",
        .id                             = UCLASS_ETH,
        .of_match                       = ethoc_ids,
-       .ofdata_to_platdata             = ethoc_ofdata_to_platdata,
+       .of_to_plat             = ethoc_of_to_plat,
        .probe                          = ethoc_probe,
        .remove                         = ethoc_remove,
        .ops                            = &ethoc_ops,
-       .priv_auto_alloc_size           = sizeof(struct ethoc),
-       .platdata_auto_alloc_size       = sizeof(struct ethoc_eth_pdata),
+       .priv_auto              = sizeof(struct ethoc),
+       .plat_auto      = sizeof(struct ethoc_eth_pdata),
 };
 
 #else
This page took 0.028979 seconds and 4 git commands to generate.