diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2006-07-12 01:35:54 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-07-31 01:55:04 -0400 |
commit | a7f67bdf2c9f24509b8e81e0f35573b611987c80 (patch) | |
tree | 201662dd6504418ef3c84cfe1f280153a4d8cb29 /arch/powerpc/kernel/time.c | |
parent | 4288b92b9644fdb4c6168273873fe08f32090d7a (diff) |
[POWERPC] 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.
powerpc core changes.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/time.c')
-rw-r--r-- | arch/powerpc/kernel/time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c index 774c0a3c5019..8d4ccf061a4d 100644 --- a/arch/powerpc/kernel/time.c +++ b/arch/powerpc/kernel/time.c | |||
@@ -859,14 +859,14 @@ EXPORT_SYMBOL(do_settimeofday); | |||
859 | static int __init get_freq(char *name, int cells, unsigned long *val) | 859 | static int __init get_freq(char *name, int cells, unsigned long *val) |
860 | { | 860 | { |
861 | struct device_node *cpu; | 861 | struct device_node *cpu; |
862 | unsigned int *fp; | 862 | const unsigned int *fp; |
863 | int found = 0; | 863 | int found = 0; |
864 | 864 | ||
865 | /* The cpu node should have timebase and clock frequency properties */ | 865 | /* The cpu node should have timebase and clock frequency properties */ |
866 | cpu = of_find_node_by_type(NULL, "cpu"); | 866 | cpu = of_find_node_by_type(NULL, "cpu"); |
867 | 867 | ||
868 | if (cpu) { | 868 | if (cpu) { |
869 | fp = (unsigned int *)get_property(cpu, name, NULL); | 869 | fp = get_property(cpu, name, NULL); |
870 | if (fp) { | 870 | if (fp) { |
871 | found = 1; | 871 | found = 1; |
872 | *val = 0; | 872 | *val = 0; |