aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/time.c')
-rw-r--r--arch/powerpc/kernel/time.c4
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);
859static int __init get_freq(char *name, int cells, unsigned long *val) 859static 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;