]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/macintosh/via-cuda.c
[POWERPC] powermac: Constify & voidify get_property()
[linux-2.6-omap-h63xx.git] / drivers / macintosh / via-cuda.c
index 69d5452fd22fc8f8178f494156f62304bc3d04ba..7512d1c1520761560d0517add1e6c50703d69475 100644 (file)
@@ -123,7 +123,7 @@ int __init find_via_cuda(void)
 {
     struct adb_request req;
     phys_addr_t taddr;
-    u32 *reg;
+    const u32 *reg;
     int err;
 
     if (vias != 0)
@@ -132,7 +132,7 @@ int __init find_via_cuda(void)
     if (vias == 0)
        return 0;
 
-    reg = (u32 *)get_property(vias, "reg", NULL);
+    reg = get_property(vias, "reg", NULL);
     if (reg == NULL) {
            printk(KERN_ERR "via-cuda: No \"reg\" property !\n");
            goto fail;