[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>
This commit is contained in:
Stephen Rothwell
2007-03-29 00:49:54 -07:00
committed by David S. Miller
parent 6a23acf390
commit ccf0dec6fc
12 changed files with 21 additions and 21 deletions

View File

@@ -1544,7 +1544,7 @@ static int __devinit tulip_init_one (struct pci_dev *pdev,
dev->dev_addr[i] = last_phys_addr[i] + 1;
#if defined(__sparc__)
if (pcp) {
unsigned char *addr;
const unsigned char *addr;
int len;
addr = of_get_property(pcp->prom_node,