aboutsummaryrefslogtreecommitdiff
path: root/hw/petalogix_s3adsp1800_mmu.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-07-27 16:12:53 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-27 14:09:19 -0500
commit84f1581861b880f28a927bbcefa564f54ea8d255 (patch)
treef80fa1e7919a697d1fa6fec6cdb4e94fa57c1afd /hw/petalogix_s3adsp1800_mmu.c
parent3f0855b14b071655396c71f0d38970b9e21be92f (diff)
Refactor code to remove one #ifdef CONFIG_FDT
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/petalogix_s3adsp1800_mmu.c')
-rw-r--r--hw/petalogix_s3adsp1800_mmu.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/hw/petalogix_s3adsp1800_mmu.c b/hw/petalogix_s3adsp1800_mmu.c
index 68a1a6af83..a04794d7f3 100644
--- 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) {