U-Boot: use FDT call directly in of_init() in OF wrapper
This avoids calling dprintf() and allows calling it earlier.
This commit is contained in:
@@ -49,7 +49,8 @@ static int fdt2of(int err)
|
|||||||
status_t
|
status_t
|
||||||
of_init(int (*openFirmwareEntry)(void *))
|
of_init(int (*openFirmwareEntry)(void *))
|
||||||
{
|
{
|
||||||
gChosen = of_finddevice("/chosen");
|
gChosen = fdt2of(fdt_path_offset(gFDT, "/chosen"));
|
||||||
|
|
||||||
if (gChosen == OF_FAILED)
|
if (gChosen == OF_FAILED)
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user