projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd43769
)
microblaze: Simplify fcpu helper function
author
Michal Simek
<michal.simek@xilinx.com>
Tue, 7 Jan 2014 10:45:07 +0000
(11:45 +0100)
committer
Michal Simek
<michal.simek@xilinx.com>
Tue, 21 Jan 2014 07:28:20 +0000
(08:28 +0100)
Use of_property_read_u32() instead of all of_get_property
with big endian conversion.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/include/asm/cpuinfo.h
patch
|
blob
|
history
diff --git
a/arch/microblaze/include/asm/cpuinfo.h
b/arch/microblaze/include/asm/cpuinfo.h
index 7d6831ac8a46eec66c4f1fc00ac28aa48000ed64..7161fb575861b35931a0fe85cabce251b3ea7e46 100644
(file)
--- a/
arch/microblaze/include/asm/cpuinfo.h
+++ b/
arch/microblaze/include/asm/cpuinfo.h
@@
-97,9
+97,11
@@
void set_cpuinfo_pvr_full(struct cpuinfo *ci, struct device_node *cpu);
static inline unsigned int fcpu(struct device_node *cpu, char *n)
{
- const __be32 *val;
- return (val = of_get_property(cpu, n, NULL)) ?
- be32_to_cpup(val) : 0;
+ u32 val = 0;
+
+ of_property_read_u32(cpu, n, &val);
+
+ return val;
}
#endif /* _ASM_MICROBLAZE_CPUINFO_H */