OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f0855b
)
Refactor code to remove one #ifdef CONFIG_FDT
author
Juan Quintela
<quintela@redhat.com>
Mon, 27 Jul 2009 14:12:53 +0000
(16:12 +0200)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Mon, 27 Jul 2009 19:09:19 +0000
(14:09 -0500)
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/petalogix_s3adsp1800_mmu.c
patch
|
blob
|
history
diff --git
a/hw/petalogix_s3adsp1800_mmu.c
b/hw/petalogix_s3adsp1800_mmu.c
index
68a1a6a
..
a04794d
100644
(file)
--- a/
hw/petalogix_s3adsp1800_mmu.c
+++ b/
hw/petalogix_s3adsp1800_mmu.c
@@
-52,14
+52,12
@@
static int petalogix_load_device_tree(target_phys_addr_t addr,
target_phys_addr_t initrd_size,
const char *kernel_cmdline)
{
+ char *path;
+ int fdt_size;
#ifdef CONFIG_FDT
void *fdt;
int r;
-#endif
- char *path;
- int fdt_size;
-#ifdef CONFIG_FDT
/* Try the local "mb.dtb" override. */
fdt = load_device_tree("mb.dtb", &fdt_size);
if (!fdt) {