Revision dbf916d8
b/hw/ppc440_bamboo.c | ||
---|---|---|
33 | 33 |
target_phys_addr_t initrd_size, |
34 | 34 |
const char *kernel_cmdline) |
35 | 35 |
{ |
36 |
void *fdt = NULL;
|
|
36 |
int ret = -1;
|
|
37 | 37 |
#ifdef CONFIG_FDT |
38 | 38 |
uint32_t mem_reg_property[] = { 0, 0, ramsize }; |
39 | 39 |
char *filename; |
40 | 40 |
int fdt_size; |
41 |
int ret;
|
|
41 |
void *fdt;
|
|
42 | 42 |
|
43 | 43 |
filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, BINARY_DEVICE_TREE_FILE); |
44 | 44 |
if (!filename) { |
45 |
ret = -1; |
|
46 | 45 |
goto out; |
47 | 46 |
} |
48 | 47 |
fdt = load_device_tree(filename, &fdt_size); |
49 | 48 |
qemu_free(filename); |
50 | 49 |
if (fdt == NULL) { |
51 |
ret = -1; |
|
52 | 50 |
goto out; |
53 | 51 |
} |
54 | 52 |
|
b/hw/ppce500_mpc8544ds.c | ||
---|---|---|
78 | 78 |
target_phys_addr_t initrd_size, |
79 | 79 |
const char *kernel_cmdline) |
80 | 80 |
{ |
81 |
void *fdt = NULL;
|
|
81 |
int ret = -1;
|
|
82 | 82 |
#ifdef CONFIG_FDT |
83 | 83 |
uint32_t mem_reg_property[] = {0, ramsize}; |
84 | 84 |
char *filename; |
85 | 85 |
int fdt_size; |
86 |
int ret;
|
|
86 |
void *fdt;
|
|
87 | 87 |
|
88 | 88 |
filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, BINARY_DEVICE_TREE_FILE); |
89 | 89 |
if (!filename) { |
90 |
ret = -1; |
|
91 | 90 |
goto out; |
92 | 91 |
} |
93 | 92 |
fdt = load_device_tree(filename, &fdt_size); |
94 | 93 |
qemu_free(filename); |
95 | 94 |
if (fdt == NULL) { |
96 |
ret = -1; |
|
97 | 95 |
goto out; |
98 | 96 |
} |
99 | 97 |
|
Also available in: Unified diff