]> err.no Git - linux-2.6/commitdiff
[TIGON3]: of_get_property() returns const.
authorDavid S. Miller <davem@sunset.davemloft.net>
Thu, 29 Mar 2007 08:57:57 +0000 (01:57 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 08:55:38 +0000 (01:55 -0700)
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c

index 6aef1e95d39ac3b68017c73ef99a4808516a84f3..9d07d2d5dfa6cb70e030568dfb3f5b5a6077df27 100644 (file)
@@ -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);