Skip to content
Snippets Groups Projects
Commit 34921d04 authored by Stephan Linz's avatar Stephan Linz Committed by Wolfgang Denk
Browse files

net: ll_temac: drop obsolete "NAMESIZE" define


... after commit "net/miiphy/serial: drop duplicate NAMESIZE
define" (sha1:f6add132) was applied. The building of the new
LL TEMAC network driver fails with error below:

xilinx_ll_temac.c: In function 'xilinx_ll_temac_initialize':
xilinx_ll_temac.c:301: error: 'NAMESIZE' undeclared (first use in this function)
xilinx_ll_temac.c:301: error: (Each undeclared identifier is reported only once
xilinx_ll_temac.c:301: error: for each function it appears in.)

Signed-off-by: default avatarStephan Linz <linz@li-pro.net>
Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
parent 0d24de9d
No related branches found
No related tags found
No related merge requests found
......@@ -298,9 +298,9 @@ int xilinx_ll_temac_initialize(bd_t *bis, struct ll_temac_info *devinf)
/* use given name or generate its own unique name */
if (devinf->devname) {
strncpy(dev->name, devinf->devname, NAMESIZE);
strncpy(dev->name, devinf->devname, sizeof(dev->name));
} else {
snprintf(dev->name, NAMESIZE, "lltemac.%lx", devinf->base_addr);
snprintf(dev->name, sizeof(dev->name), "lltemac.%lx", devinf->base_addr);
devinf->devname = dev->name;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment