diff --git a/board/freescale/common/fman.c b/board/freescale/common/fman.c index 26cf5175c77f757b289b9a360f5cc54278c46db1..b5025ab14e84da5f10cf9348cddccb5c98a34930 100644 --- a/board/freescale/common/fman.c +++ b/board/freescale/common/fman.c @@ -52,6 +52,8 @@ int fdt_set_phy_handle(void *fdt, char *compat, phys_addr_t addr, if (!ph) return -FDT_ERR_BADPHANDLE; + ph = cpu_to_fdt32(ph); + offset = fdt_node_offset_by_compat_reg(fdt, compat, addr); if (offset < 0) return offset;