diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2006-07-12 01:39:42 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-07-31 01:55:04 -0400 |
commit | 8efca49329a50710d656a8bb78d6f0f0e2f48a26 (patch) | |
tree | 6843306ed52bb6f9b932633ddaf1df90431a2ab6 /arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | |
parent | c4c7cba90cf9f180a2c45f7e54143f786360f3dd (diff) |
[POWERPC] mpc: 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.
mpc* platform changes.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/86xx/mpc86xx_hpcn.c')
-rw-r--r-- | arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c index ebae73eb006..839090682ab 100644 --- a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c +++ b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | |||
@@ -323,9 +323,9 @@ mpc86xx_hpcn_setup_arch(void) | |||
323 | 323 | ||
324 | np = of_find_node_by_type(NULL, "cpu"); | 324 | np = of_find_node_by_type(NULL, "cpu"); |
325 | if (np != 0) { | 325 | if (np != 0) { |
326 | unsigned int *fp; | 326 | const unsigned int *fp; |
327 | 327 | ||
328 | fp = (int *)get_property(np, "clock-frequency", NULL); | 328 | fp = get_property(np, "clock-frequency", NULL); |
329 | if (fp != 0) | 329 | if (fp != 0) |
330 | loops_per_jiffy = *fp / HZ; | 330 | loops_per_jiffy = *fp / HZ; |
331 | else | 331 | else |