]> err.no Git - linux-2.6/blobdiff - arch/powerpc/platforms/pseries/pci.c
[POWERPC] pseries/phyp dump: Reserve a variable amount of space at boot
[linux-2.6] / arch / powerpc / platforms / pseries / pci.c
index fa59124ce3febe98fe6c8015f071cb12e003b5bd..2c6ded29f73d3d5afbcdef6bd9719d777da0cd12 100644 (file)
@@ -25,6 +25,7 @@
 #include <linux/pci.h>
 #include <linux/string.h>
 
+#include <asm/eeh.h>
 #include <asm/pci-bridge.h>
 #include <asm/prom.h>
 #include <asm/ppc-pci.h>
@@ -39,7 +40,7 @@ void pcibios_name_device(struct pci_dev *dev)
         */
        dn = pci_device_to_OF_node(dev);
        if (dn) {
-               char *loc_code = get_property(dn, "ibm,loc-code", 0);
+               const char *loc_code = of_get_property(dn, "ibm,loc-code", 0);
                if (loc_code) {
                        int loc_len = strlen(loc_code);
                        if (loc_len < sizeof(dev->dev.name)) {