]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/platforms/powermac/pfunc_base.c
[POWERPC] powermac: Constify & voidify get_property()
[linux-2.6-omap-h63xx.git] / arch / powerpc / platforms / powermac / pfunc_base.c
index 6d66359ec8c897d10e47debbed9162ab66470a7f..829dacec96e55686486b48865cfc07d01ddbf681 100644 (file)
@@ -114,7 +114,7 @@ static void macio_gpio_init_one(struct macio_chip *macio)
         * we just create them all
         */
        for (gp = NULL; (gp = of_get_next_child(gparent, gp)) != NULL;) {
-               u32 *reg = (u32 *)get_property(gp, "reg", NULL);
+               const u32 *reg = get_property(gp, "reg", NULL);
                unsigned long offset;
                if (reg == NULL)
                        continue;