diff options
Diffstat (limited to 'arch/microblaze/include/asm/cpuinfo.h')
-rw-r--r-- | arch/microblaze/include/asm/cpuinfo.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/microblaze/include/asm/cpuinfo.h b/arch/microblaze/include/asm/cpuinfo.h index 0d4f0ce3ff7c..7fab800496ae 100644 --- a/arch/microblaze/include/asm/cpuinfo.h +++ b/arch/microblaze/include/asm/cpuinfo.h | |||
@@ -98,7 +98,8 @@ void set_cpuinfo_pvr_full(struct cpuinfo *ci, struct device_node *cpu); | |||
98 | static inline unsigned int fcpu(struct device_node *cpu, char *n) | 98 | static inline unsigned int fcpu(struct device_node *cpu, char *n) |
99 | { | 99 | { |
100 | int *val; | 100 | int *val; |
101 | return (val = (int *) of_get_property(cpu, n, NULL)) ? *val : 0; | 101 | return (val = (int *) of_get_property(cpu, n, NULL)) ? |
102 | be32_to_cpup(val) : 0; | ||
102 | } | 103 | } |
103 | 104 | ||
104 | #endif /* _ASM_MICROBLAZE_CPUINFO_H */ | 105 | #endif /* _ASM_MICROBLAZE_CPUINFO_H */ |