Commit d8a8188d authored by Olaf Hering's avatar Olaf Hering Committed by Paul Mackerras

[PATCH] powerpc: remove pointer/integer confusion in generic_calibrate_decr

remove pointer/integer confusion
Signed-off-by: default avatarOlaf Hering <olh@suse.de>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent b68239ee
...@@ -612,10 +612,10 @@ void __init generic_calibrate_decr(void) ...@@ -612,10 +612,10 @@ void __init generic_calibrate_decr(void)
ppc_tb_freq = DEFAULT_TB_FREQ; /* hardcoded default */ ppc_tb_freq = DEFAULT_TB_FREQ; /* hardcoded default */
node_found = 0; node_found = 0;
if (cpu != 0) { if (cpu) {
fp = (unsigned int *)get_property(cpu, "timebase-frequency", fp = (unsigned int *)get_property(cpu, "timebase-frequency",
NULL); NULL);
if (fp != 0) { if (fp) {
node_found = 1; node_found = 1;
ppc_tb_freq = *fp; ppc_tb_freq = *fp;
} }
...@@ -626,10 +626,10 @@ void __init generic_calibrate_decr(void) ...@@ -626,10 +626,10 @@ void __init generic_calibrate_decr(void)
ppc_proc_freq = DEFAULT_PROC_FREQ; ppc_proc_freq = DEFAULT_PROC_FREQ;
node_found = 0; node_found = 0;
if (cpu != 0) { if (cpu) {
fp = (unsigned int *)get_property(cpu, "clock-frequency", fp = (unsigned int *)get_property(cpu, "clock-frequency",
NULL); NULL);
if (fp != 0) { if (fp) {
node_found = 1; node_found = 1;
ppc_proc_freq = *fp; ppc_proc_freq = *fp;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment