summaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
authorStephen Rothwell2007-03-29 09:49:54 +0200
committerDavid S. Miller2007-04-26 10:54:27 +0200
commitccf0dec6fcadb4e1c877b9bafb031a6bdb7112b9 (patch)
tree98617d025f167ad05bb126f0982841ce277ee3af /drivers/net/tg3.c
parent[SPARC64]: constify of_get_property return: arch/sparc64 (diff)
downloadkernel-qcow2-linux-ccf0dec6fcadb4e1c877b9bafb031a6bdb7112b9.tar.gz
kernel-qcow2-linux-ccf0dec6fcadb4e1c877b9bafb031a6bdb7112b9.tar.xz
kernel-qcow2-linux-ccf0dec6fcadb4e1c877b9bafb031a6bdb7112b9.zip
[SPARC/64] constify of_get_property return: drivers
The only unfortunate bit here is that the name field of struct map_info is not const, so for now we put a cast on the assignment of it. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r--drivers/net/tg3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 256969e1300c..45b4e018b5e0 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -10996,7 +10996,7 @@ static int __devinit tg3_get_macaddr_sparc(struct tg3 *tp)
struct pcidev_cookie *pcp = pdev->sysdata;
if (pcp != NULL) {
- unsigned char *addr;
+ const unsigned char *addr;
int len;
addr = of_get_property(pcp->prom_node, "local-mac-address",