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:
François Revol
2013-02-18 00:42:10 +01:00
parent f4b31e85b5
commit 5bdc10121b
@@ -49,7 +49,8 @@ static int fdt2of(int err)
status_t
of_init(int (*openFirmwareEntry)(void *))
{
gChosen = of_finddevice("/chosen");
gChosen = fdt2of(fdt_path_offset(gFDT, "/chosen"));
if (gChosen == OF_FAILED)
return B_ERROR;