[POWERPC] Rename get_property to of_get_property: include
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 3 Apr 2007 12:24:06 +0000 (22:24 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 12 Apr 2007 17:55:19 +0000 (03:55 +1000)
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>
include/asm-powerpc/parport.h

index 3fca21ddf546c4213f863bffa8cf7790d612e516..b37b81e3727848d66f76a4baa214575c7a187694 100644 (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)
 {
        struct device_node *np;
-       u32 *prop;
+       const u32 *prop;
        u32 io1, io2;
        int propsize;
        int count = 0;
        for (np = NULL; (np = of_find_compatible_node(np,
                                                      "parallel",
                                                      "pnpPNP,400")) != NULL;) {
-               prop = (u32 *)get_property(np, "reg", &propsize);
+               prop = of_get_property(np, "reg", &propsize);
                if (!prop || propsize > 6*sizeof(u32))
                        continue;
                io1 = prop[1]; io2 = prop[2];
-               prop = (u32 *)get_property(np, "interrupts", NULL);
+               prop = of_get_property(np, "interrupts", NULL);
                if (!prop)
                        continue;
                if (parport_pc_probe_port(io1, io2, prop[0], autodma, NULL) != NULL)