diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2006-07-12 01:39:43 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-07-31 01:55:04 -0400 |
commit | 954a46e2d5aec6f59976ddeb1d232b486e59b54a (patch) | |
tree | 4e34abf431de3d6a31036c1fdf33fa4dadeb2951 /arch/powerpc/platforms/pseries/smp.c | |
parent | a7f67bdf2c9f24509b8e81e0f35573b611987c80 (diff) |
[POWERPC] pseries: Constify & voidify get_property()
Now that get_property() returns a void *, there's no need to cast its
return value. Also, treat the return value as const, so we can
constify get_property later.
pseries platform changes.
Built for pseries_defconfig
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/pseries/smp.c')
-rw-r--r-- | arch/powerpc/platforms/pseries/smp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/pseries/smp.c b/arch/powerpc/platforms/pseries/smp.c index ac61098ff401..f39dad8b99e0 100644 --- a/arch/powerpc/platforms/pseries/smp.c +++ b/arch/powerpc/platforms/pseries/smp.c | |||
@@ -145,9 +145,9 @@ static int pSeries_add_processor(struct device_node *np) | |||
145 | unsigned int cpu; | 145 | unsigned int cpu; |
146 | cpumask_t candidate_map, tmp = CPU_MASK_NONE; | 146 | cpumask_t candidate_map, tmp = CPU_MASK_NONE; |
147 | int err = -ENOSPC, len, nthreads, i; | 147 | int err = -ENOSPC, len, nthreads, i; |
148 | u32 *intserv; | 148 | const u32 *intserv; |
149 | 149 | ||
150 | intserv = (u32 *)get_property(np, "ibm,ppc-interrupt-server#s", &len); | 150 | intserv = get_property(np, "ibm,ppc-interrupt-server#s", &len); |
151 | if (!intserv) | 151 | if (!intserv) |
152 | return 0; | 152 | return 0; |
153 | 153 | ||
@@ -205,9 +205,9 @@ static void pSeries_remove_processor(struct device_node *np) | |||
205 | { | 205 | { |
206 | unsigned int cpu; | 206 | unsigned int cpu; |
207 | int len, nthreads, i; | 207 | int len, nthreads, i; |
208 | u32 *intserv; | 208 | const u32 *intserv; |
209 | 209 | ||
210 | intserv = (u32 *)get_property(np, "ibm,ppc-interrupt-server#s", &len); | 210 | intserv = get_property(np, "ibm,ppc-interrupt-server#s", &len); |
211 | if (!intserv) | 211 | if (!intserv) |
212 | return; | 212 | return; |
213 | 213 | ||