Skip to content
Snippets Groups Projects
Commit 84f15818 authored by Juan Quintela's avatar Juan Quintela Committed by Anthony Liguori
Browse files

Refactor code to remove one #ifdef CONFIG_FDT


Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
parent 3f0855b1
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment