diff options
Diffstat (limited to 'arch/powerpc/platforms/pseries/eeh.c')
-rw-r--r-- | arch/powerpc/platforms/pseries/eeh.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/powerpc/platforms/pseries/eeh.c b/arch/powerpc/platforms/pseries/eeh.c index 32eaddfa5470..5a23ce5e16ff 100644 --- a/arch/powerpc/platforms/pseries/eeh.c +++ b/arch/powerpc/platforms/pseries/eeh.c | |||
@@ -691,11 +691,11 @@ static void *early_enable_eeh(struct device_node *dn, void *data) | |||
691 | { | 691 | { |
692 | struct eeh_early_enable_info *info = data; | 692 | struct eeh_early_enable_info *info = data; |
693 | int ret; | 693 | int ret; |
694 | char *status = get_property(dn, "status", NULL); | 694 | const char *status = get_property(dn, "status", NULL); |
695 | u32 *class_code = (u32 *)get_property(dn, "class-code", NULL); | 695 | const u32 *class_code = get_property(dn, "class-code", NULL); |
696 | u32 *vendor_id = (u32 *)get_property(dn, "vendor-id", NULL); | 696 | const u32 *vendor_id = get_property(dn, "vendor-id", NULL); |
697 | u32 *device_id = (u32 *)get_property(dn, "device-id", NULL); | 697 | const u32 *device_id = get_property(dn, "device-id", NULL); |
698 | u32 *regs; | 698 | const u32 *regs; |
699 | int enable; | 699 | int enable; |
700 | struct pci_dn *pdn = PCI_DN(dn); | 700 | struct pci_dn *pdn = PCI_DN(dn); |
701 | 701 | ||
@@ -737,7 +737,7 @@ static void *early_enable_eeh(struct device_node *dn, void *data) | |||
737 | 737 | ||
738 | /* Ok... see if this device supports EEH. Some do, some don't, | 738 | /* Ok... see if this device supports EEH. Some do, some don't, |
739 | * and the only way to find out is to check each and every one. */ | 739 | * and the only way to find out is to check each and every one. */ |
740 | regs = (u32 *)get_property(dn, "reg", NULL); | 740 | regs = get_property(dn, "reg", NULL); |
741 | if (regs) { | 741 | if (regs) { |
742 | /* First register entry is addr (00BBSS00) */ | 742 | /* First register entry is addr (00BBSS00) */ |
743 | /* Try to enable eeh */ | 743 | /* Try to enable eeh */ |