diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-11-10 14:11:04 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2012-03-18 20:11:22 +0100 |
commit | f6add132f6d7f45eb7d4b3839513c38bfb28eb08 (patch) | |
tree | 02da84cb248aaab568c2283a2bbecd9ee91a098b /drivers/net | |
parent | 2b224609568988a7d8db22d372b232a69155733f (diff) | |
download | u-boot-imx-f6add132f6d7f45eb7d4b3839513c38bfb28eb08.zip u-boot-imx-f6add132f6d7f45eb7d4b3839513c38bfb28eb08.tar.gz u-boot-imx-f6add132f6d7f45eb7d4b3839513c38bfb28eb08.tar.bz2 |
net/miiphy/serial: drop duplicate "NAMESIZE" define
A few subsystems are using the same define "NAMESIZE". This has been
working so far because they define it to the same number. However, I
want to change the size of eth_device's NAMESIZE, so rather than tweak
the define names, simply drop references to it. Almost no one does,
and the handful that do can easily be changed to a sizeof().
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/armada100_fec.c | 2 | ||||
-rw-r--r-- | drivers/net/mvgbe.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/armada100_fec.c b/drivers/net/armada100_fec.c index 1a54362..52be3a7 100644 --- a/drivers/net/armada100_fec.c +++ b/drivers/net/armada100_fec.c @@ -715,7 +715,7 @@ int armada100_fec_register(unsigned long base_addr) /* Assign ARMADA100 Fast Ethernet Controller Base Address */ darmdfec->regs = (void *)base_addr; - /* must be less than NAMESIZE (16) */ + /* must be less than sizeof(dev->name) */ strcpy(dev->name, "armd-fec0"); dev->init = armdfec_init; diff --git a/drivers/net/mvgbe.c b/drivers/net/mvgbe.c index 1dcb700..477bf5c 100644 --- a/drivers/net/mvgbe.c +++ b/drivers/net/mvgbe.c @@ -702,7 +702,7 @@ error1: dev = &dmvgbe->dev; - /* must be less than NAMESIZE (16) */ + /* must be less than sizeof(dev->name) */ sprintf(dev->name, "egiga%d", devnum); switch (devnum) { |