]> git.sur5r.net Git - u-boot/blobdiff - drivers/net/mvpp2.c
x86: timer: tsc: Allow specifying clock rate from device tree again
[u-boot] / drivers / net / mvpp2.c
index 233c98b66c88d85f9578b9b84766124c2d4f2f4d..62c0c2be0626d36608893467cfd406d76f4db6c5 100644 (file)
@@ -4722,7 +4722,7 @@ static int phy_info_parse(struct udevice *dev, struct mvpp2_port *port)
        u32 id;
        u32 phyaddr = 0;
        int phy_mode = -1;
-       u64 mdio_addr;
+       phys_addr_t mdio_addr;
 
        phy_node = fdtdec_lookup_phandle(gd->fdt_blob, port_node, "phy");
 
@@ -5598,6 +5598,10 @@ static int mvpp2_base_bind(struct udevice *parent)
                id += base_id_add;
 
                name = calloc(1, 16);
+               if (!name) {
+                       free(plat);
+                       return -ENOMEM;
+               }
                sprintf(name, "mvpp2-%d", id);
 
                /* Create child device UCLASS_ETH and bind it */