diff options
author | David Gibson <dgibson@sneetch.(none)> | 2005-08-25 14:47:20 +1000 |
---|---|---|
committer | David Gibson <dgibson@sneetch.(none)> | 2005-08-25 14:47:20 +1000 |
commit | dffc2a8972640dc2d9c9cdf7c83132d93437f6af (patch) | |
tree | 5940b0549ff968a7160d12d06a4ab03edb88b632 /flattree.c | |
parent | 4ddf7c020c3db2f001987ec2c2a91a030a01377d (diff) | |
download | device-tree-compiler-dffc2a8972640dc2d9c9cdf7c83132d93437f6af.tar.gz |
Add a couple of missing cpu_to_be32() writing the version numbers out.
Diffstat (limited to 'flattree.c')
-rw-r--r-- | flattree.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -298,8 +298,8 @@ static void make_bph(struct boot_param_header *bph, memset(bph, 0xff, sizeof(*bph)); bph->magic = cpu_to_be32(OF_DT_HEADER); - bph->version = vi->version; - bph->last_comp_version = vi->last_comp_version; + bph->version = cpu_to_be32(vi->version); + bph->last_comp_version = cpu_to_be32(vi->last_comp_version); /* Reserve map should be doubleword aligned */ reserve_off = ALIGN(vi->hdr_size, 8); |