imx: reorganize IMX code as other SOCs
[oweals/u-boot.git] / drivers / serial / serial_lpuart.c
index 47dd88b32c8de9259c5a84376eb372fc64040c92..382f8ba5b52d6279dfc214cdc73ef6a91fea6ddb 100644 (file)
@@ -416,7 +416,7 @@ static int lpuart_serial_ofdata_to_platdata(struct udevice *dev)
 {
        struct lpuart_serial_platdata *plat = dev->platdata;
        const void *blob = gd->fdt_blob;
-       int node = dev->of_offset;
+       int node = dev_of_offset(dev);
        fdt_addr_t addr;
 
        addr = devfdt_get_addr(dev);