Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198024
b: refs/heads/master
c: 8bfe9b5
h: refs/heads/master
v: v3
  • Loading branch information
Grant Likely committed Apr 29, 2010
1 parent 1716a8e commit 32f4467
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cf32eb89cb4e674f88e4af5025839d85d02485c6
refs/heads/master: 8bfe9b5c3a684fe39eb58a65e466c103d1c32c9a
15 changes: 15 additions & 0 deletions trunk/drivers/of/fdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,21 @@ void __init unflatten_device_tree(void)

pr_debug(" -> unflatten_device_tree()\n");

if (!initial_boot_params) {
pr_debug("No device tree pointer\n");
return;
}

pr_debug("Unflattening device tree:\n");
pr_debug("magic: %08x\n", be32_to_cpu(initial_boot_params->magic));
pr_debug("size: %08x\n", be32_to_cpu(initial_boot_params->totalsize));
pr_debug("version: %08x\n", be32_to_cpu(initial_boot_params->version));

if (be32_to_cpu(initial_boot_params->magic) != OF_DT_HEADER) {
pr_err("Invalid device tree blob header\n");
return;
}

/* First pass, scan for size */
start = ((unsigned long)initial_boot_params) +
be32_to_cpu(initial_boot_params->off_dt_struct);
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/linux/of_fdt.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ extern int early_init_dt_scan_root(unsigned long node, const char *uname,
/* Other Prototypes */
extern void unflatten_device_tree(void);
extern void early_init_devtree(void *);
#else /* CONFIG_OF_FLATTREE */
static inline void unflatten_device_tree(void) {}
#endif /* CONFIG_OF_FLATTREE */

#endif /* __ASSEMBLY__ */
Expand Down

0 comments on commit 32f4467

Please sign in to comment.