]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/agp/uninorth-agp.c
[POWERPC] video & agp: Constify & voidify get_property()
[linux-2.6-omap-h63xx.git] / drivers / char / agp / uninorth-agp.c
index 1de1b12043bf09f92db60863ce316780cf3422ed..91b71e750ee15f16a0372a3f7d8559c4fa2d6d72 100644 (file)
@@ -601,8 +601,8 @@ static int __devinit agp_uninorth_probe(struct pci_dev *pdev,
                uninorth_node = of_find_node_by_name(NULL, "u3");
        }
        if (uninorth_node) {
-               int *revprop = (int *)
-                       get_property(uninorth_node, "device-rev", NULL);
+               const int *revprop = get_property(uninorth_node,
+                               "device-rev", NULL);
                if (revprop != NULL)
                        uninorth_rev = *revprop & 0x3f;
                of_node_put(uninorth_node);