diff options
Diffstat (limited to 'arch/powerpc/platforms/pseries/ras.c')
-rw-r--r-- | arch/powerpc/platforms/pseries/ras.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/pseries/ras.c b/arch/powerpc/platforms/pseries/ras.c index c7ffde1a614e..903115d67fdc 100644 --- a/arch/powerpc/platforms/pseries/ras.c +++ b/arch/powerpc/platforms/pseries/ras.c | |||
@@ -79,7 +79,7 @@ static void request_ras_irqs(struct device_node *np, | |||
79 | { | 79 | { |
80 | int i, index, count = 0; | 80 | int i, index, count = 0; |
81 | struct of_irq oirq; | 81 | struct of_irq oirq; |
82 | u32 *opicprop; | 82 | const u32 *opicprop; |
83 | unsigned int opicplen; | 83 | unsigned int opicplen; |
84 | unsigned int virqs[16]; | 84 | unsigned int virqs[16]; |
85 | 85 | ||
@@ -87,7 +87,7 @@ static void request_ras_irqs(struct device_node *np, | |||
87 | * map those interrupts using the default interrupt host and default | 87 | * map those interrupts using the default interrupt host and default |
88 | * trigger | 88 | * trigger |
89 | */ | 89 | */ |
90 | opicprop = (u32 *)get_property(np, "open-pic-interrupt", &opicplen); | 90 | opicprop = get_property(np, "open-pic-interrupt", &opicplen); |
91 | if (opicprop) { | 91 | if (opicprop) { |
92 | opicplen /= sizeof(u32); | 92 | opicplen /= sizeof(u32); |
93 | for (i = 0; i < opicplen; i++) { | 93 | for (i = 0; i < opicplen; i++) { |