[POWERPC] Rename get_property to of_get_property: include

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
Stephen Rothwell 2007-04-03 22:24:06 +10:00 committed by Paul Mackerras
parent 721151d004
commit ceef87782a

View file

@ -20,18 +20,18 @@ extern struct parport *parport_pc_probe_port (unsigned long int base,
static int __devinit parport_pc_find_nonpci_ports (int autoirq, int autodma) static int __devinit parport_pc_find_nonpci_ports (int autoirq, int autodma)
{ {
struct device_node *np; struct device_node *np;
u32 *prop; const u32 *prop;
u32 io1, io2; u32 io1, io2;
int propsize; int propsize;
int count = 0; int count = 0;
for (np = NULL; (np = of_find_compatible_node(np, for (np = NULL; (np = of_find_compatible_node(np,
"parallel", "parallel",
"pnpPNP,400")) != NULL;) { "pnpPNP,400")) != NULL;) {
prop = (u32 *)get_property(np, "reg", &propsize); prop = of_get_property(np, "reg", &propsize);
if (!prop || propsize > 6*sizeof(u32)) if (!prop || propsize > 6*sizeof(u32))
continue; continue;
io1 = prop[1]; io2 = prop[2]; io1 = prop[1]; io2 = prop[2];
prop = (u32 *)get_property(np, "interrupts", NULL); prop = of_get_property(np, "interrupts", NULL);
if (!prop) if (!prop)
continue; continue;
if (parport_pc_probe_port(io1, io2, prop[0], autodma, NULL) != NULL) if (parport_pc_probe_port(io1, io2, prop[0], autodma, NULL) != NULL)