qe: move drivers/qe/qe.h to include/fsl_qe.h
[oweals/u-boot.git] / drivers / net / altera_tse.c
index 5692fe9d4a3b54cf7a7dd08d40eaea5aaf057f5a..92a1b644958cf7050e96a66ba5afa62f2ba456ad 100644 (file)
@@ -417,7 +417,7 @@ static int tse_mdio_init(const char *name, struct altera_tse_priv *priv)
 
        bus->read = tse_mdio_read;
        bus->write = tse_mdio_write;
-       snprintf(bus->name, sizeof(bus->name), name);
+       snprintf(bus->name, sizeof(bus->name), "%s", name);
 
        bus->priv = (void *)priv;
 
@@ -608,7 +608,7 @@ static int altera_tse_probe(struct udevice *dev)
                addr = fdt_translate_address((void *)blob,
                                             node, cell + idx);
                size = fdt_addr_to_cpu(cell[idx + addrc]);
-               base = ioremap(addr, size);
+               base = map_physmem(addr, size, MAP_NOCACHE);
                len = strlen(list);
                if (strcmp(list, "control_port") == 0)
                        priv->mac_dev = base;