diff options
Diffstat (limited to 'arch/powerpc/platforms/pseries/eeh.c')
-rw-r--r-- | arch/powerpc/platforms/pseries/eeh.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/powerpc/platforms/pseries/eeh.c b/arch/powerpc/platforms/pseries/eeh.c index a56be71d1ede..48fbd442e9df 100644 --- a/arch/powerpc/platforms/pseries/eeh.c +++ b/arch/powerpc/platforms/pseries/eeh.c | |||
@@ -789,10 +789,10 @@ static void *early_enable_eeh(struct device_node *dn, void *data) | |||
789 | unsigned int rets[3]; | 789 | unsigned int rets[3]; |
790 | struct eeh_early_enable_info *info = data; | 790 | struct eeh_early_enable_info *info = data; |
791 | int ret; | 791 | int ret; |
792 | const char *status = get_property(dn, "status", NULL); | 792 | const char *status = of_get_property(dn, "status", NULL); |
793 | const u32 *class_code = get_property(dn, "class-code", NULL); | 793 | const u32 *class_code = of_get_property(dn, "class-code", NULL); |
794 | const u32 *vendor_id = get_property(dn, "vendor-id", NULL); | 794 | const u32 *vendor_id = of_get_property(dn, "vendor-id", NULL); |
795 | const u32 *device_id = get_property(dn, "device-id", NULL); | 795 | const u32 *device_id = of_get_property(dn, "device-id", NULL); |
796 | const u32 *regs; | 796 | const u32 *regs; |
797 | int enable; | 797 | int enable; |
798 | struct pci_dn *pdn = PCI_DN(dn); | 798 | struct pci_dn *pdn = PCI_DN(dn); |
@@ -835,7 +835,7 @@ static void *early_enable_eeh(struct device_node *dn, void *data) | |||
835 | 835 | ||
836 | /* Ok... see if this device supports EEH. Some do, some don't, | 836 | /* Ok... see if this device supports EEH. Some do, some don't, |
837 | * and the only way to find out is to check each and every one. */ | 837 | * and the only way to find out is to check each and every one. */ |
838 | regs = get_property(dn, "reg", NULL); | 838 | regs = of_get_property(dn, "reg", NULL); |
839 | if (regs) { | 839 | if (regs) { |
840 | /* First register entry is addr (00BBSS00) */ | 840 | /* First register entry is addr (00BBSS00) */ |
841 | /* Try to enable eeh */ | 841 | /* Try to enable eeh */ |