aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-03-29 03:49:54 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 04:54:27 -0400
commitccf0dec6fcadb4e1c877b9bafb031a6bdb7112b9 (patch)
tree98617d025f167ad05bb126f0982841ce277ee3af /drivers/net
parent6a23acf3905287eb952a6f1dbbc8fb3e4eeae2f6 (diff)
[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')
-rw-r--r--drivers/net/sungem.c2
-rw-r--r--drivers/net/sunhme.c6
-rw-r--r--drivers/net/tg3.c2
-rw-r--r--drivers/net/tulip/tulip_core.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/sungem.c b/drivers/net/sungem.c
index 08ea61db46fe..bb07b79817f4 100644
--- a/drivers/net/sungem.c
+++ b/drivers/net/sungem.c
@@ -2914,7 +2914,7 @@ static int __devinit gem_get_device_address(struct gem *gp)
2914 int use_idprom = 1; 2914 int use_idprom = 1;
2915 2915
2916 if (pcp != NULL) { 2916 if (pcp != NULL) {
2917 unsigned char *addr; 2917 const unsigned char *addr;
2918 int len; 2918 int len;
2919 2919
2920 addr = of_get_property(pcp->prom_node, "local-mac-address", 2920 addr = of_get_property(pcp->prom_node, "local-mac-address",
diff --git a/drivers/net/sunhme.c b/drivers/net/sunhme.c
index 192bbc91c731..bee5e5b309b7 100644
--- a/drivers/net/sunhme.c
+++ b/drivers/net/sunhme.c
@@ -2704,7 +2704,7 @@ static int __devinit happy_meal_sbus_probe_one(struct sbus_dev *sdev, int is_qfe
2704 dev->dev_addr[i] = macaddr[i]; 2704 dev->dev_addr[i] = macaddr[i];
2705 macaddr[5]++; 2705 macaddr[5]++;
2706 } else { 2706 } else {
2707 unsigned char *addr; 2707 const unsigned char *addr;
2708 int len; 2708 int len;
2709 2709
2710 addr = of_get_property(dp, "local-mac-address", &len); 2710 addr = of_get_property(dp, "local-mac-address", &len);
@@ -3081,7 +3081,7 @@ static int __devinit happy_meal_pci_probe(struct pci_dev *pdev,
3081 macaddr[5]++; 3081 macaddr[5]++;
3082 } else { 3082 } else {
3083#ifdef CONFIG_SPARC 3083#ifdef CONFIG_SPARC
3084 unsigned char *addr; 3084 const unsigned char *addr;
3085 int len; 3085 int len;
3086 3086
3087 if (qfe_slot != -1 && 3087 if (qfe_slot != -1 &&
@@ -3300,7 +3300,7 @@ static int __devinit hme_sbus_probe(struct of_device *dev, const struct of_devic
3300{ 3300{
3301 struct sbus_dev *sdev = to_sbus_device(&dev->dev); 3301 struct sbus_dev *sdev = to_sbus_device(&dev->dev);
3302 struct device_node *dp = dev->node; 3302 struct device_node *dp = dev->node;
3303 char *model = of_get_property(dp, "model", NULL); 3303 const char *model = of_get_property(dp, "model", NULL);
3304 int is_qfe = (match->data != NULL); 3304 int is_qfe = (match->data != NULL);
3305 3305
3306 if (!is_qfe && model && !strcmp(model, "SUNW,sbus-qfe")) 3306 if (!is_qfe && model && !strcmp(model, "SUNW,sbus-qfe"))
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)
10996 struct pcidev_cookie *pcp = pdev->sysdata; 10996 struct pcidev_cookie *pcp = pdev->sysdata;
10997 10997
10998 if (pcp != NULL) { 10998 if (pcp != NULL) {
10999 unsigned char *addr; 10999 const unsigned char *addr;
11000 int len; 11000 int len;
11001 11001
11002 addr = of_get_property(pcp->prom_node, "local-mac-address", 11002 addr = of_get_property(pcp->prom_node, "local-mac-address",
diff --git a/drivers/net/tulip/tulip_core.c b/drivers/net/tulip/tulip_core.c
index e3774a522372..03c14181b6bd 100644
--- a/drivers/net/tulip/tulip_core.c
+++ b/drivers/net/tulip/tulip_core.c
@@ -1544,7 +1544,7 @@ static int __devinit tulip_init_one (struct pci_dev *pdev,
1544 dev->dev_addr[i] = last_phys_addr[i] + 1; 1544 dev->dev_addr[i] = last_phys_addr[i] + 1;
1545#if defined(__sparc__) 1545#if defined(__sparc__)
1546 if (pcp) { 1546 if (pcp) {
1547 unsigned char *addr; 1547 const unsigned char *addr;
1548 int len; 1548 int len;
1549 1549
1550 addr = of_get_property(pcp->prom_node, 1550 addr = of_get_property(pcp->prom_node,