From: David S. Miller Date: Thu, 29 Mar 2007 08:57:57 +0000 (-0700) Subject: [TIGON3]: of_get_property() returns const. X-Git-Tag: v2.6.22-rc1~1127^2~8 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=374d4cac6283469f101282ca83ee008368bd8350;p=linux-2.6 [TIGON3]: of_get_property() returns const. Signed-off-by: David S. Miller --- diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 6aef1e95d3..9d07d2d5df 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c @@ -10993,7 +10993,7 @@ static int __devinit tg3_get_macaddr_sparc(struct tg3 *tp) struct net_device *dev = tp->dev; struct pci_dev *pdev = tp->pdev; struct device_node *dp = pci_device_to_OF_node(pdev); - unsigned char *addr; + const unsigned char *addr; int len; addr = of_get_property(dp, "local-mac-address", &len);