diff options
Diffstat (limited to 'drivers/serial/serial_omap.c')
-rw-r--r-- | drivers/serial/serial_omap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/serial/serial_omap.c b/drivers/serial/serial_omap.c index 296c5fd..26e03b8 100644 --- a/drivers/serial/serial_omap.c +++ b/drivers/serial/serial_omap.c @@ -101,7 +101,7 @@ DEBUG_UART_FUNCS #if CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA) static int omap_serial_ofdata_to_platdata(struct udevice *dev) { - struct ns16550_platdata *plat = dev->platdata; + struct ns16550_platdata *plat = dev->plat; fdt_addr_t addr; struct clk clk; int err; @@ -158,7 +158,7 @@ U_BOOT_DRIVER(omap_serial) = { #if CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA) .of_match = omap_serial_ids, .ofdata_to_platdata = omap_serial_ofdata_to_platdata, - .platdata_auto = sizeof(struct ns16550_platdata), + .plat_auto = sizeof(struct ns16550_platdata), #endif .priv_auto = sizeof(struct NS16550), .probe = ns16550_serial_probe, |