diff options
Diffstat (limited to 'drivers/serial/serial_meson.c')
-rw-r--r-- | drivers/serial/serial_meson.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/serial/serial_meson.c b/drivers/serial/serial_meson.c index 73a10f8..997426d 100644 --- a/drivers/serial/serial_meson.c +++ b/drivers/serial/serial_meson.c @@ -57,7 +57,7 @@ static void meson_serial_init(struct meson_uart *uart) static int meson_serial_probe(struct udevice *dev) { - struct meson_serial_platdata *plat = dev->platdata; + struct meson_serial_platdata *plat = dev->plat; struct meson_uart *const uart = plat->reg; meson_serial_init(uart); @@ -67,7 +67,7 @@ static int meson_serial_probe(struct udevice *dev) static void meson_serial_rx_error(struct udevice *dev) { - struct meson_serial_platdata *plat = dev->platdata; + struct meson_serial_platdata *plat = dev->plat; struct meson_uart *const uart = plat->reg; u32 val = readl(&uart->control); @@ -83,7 +83,7 @@ static void meson_serial_rx_error(struct udevice *dev) static int meson_serial_getc(struct udevice *dev) { - struct meson_serial_platdata *plat = dev->platdata; + struct meson_serial_platdata *plat = dev->plat; struct meson_uart *const uart = plat->reg; uint32_t status = readl(&uart->status); @@ -100,7 +100,7 @@ static int meson_serial_getc(struct udevice *dev) static int meson_serial_putc(struct udevice *dev, const char ch) { - struct meson_serial_platdata *plat = dev->platdata; + struct meson_serial_platdata *plat = dev->plat; struct meson_uart *const uart = plat->reg; if (readl(&uart->status) & AML_UART_TX_FULL) @@ -113,7 +113,7 @@ static int meson_serial_putc(struct udevice *dev, const char ch) static int meson_serial_pending(struct udevice *dev, bool input) { - struct meson_serial_platdata *plat = dev->platdata; + struct meson_serial_platdata *plat = dev->plat; struct meson_uart *const uart = plat->reg; uint32_t status = readl(&uart->status); @@ -138,7 +138,7 @@ static int meson_serial_pending(struct udevice *dev, bool input) static int meson_serial_ofdata_to_platdata(struct udevice *dev) { - struct meson_serial_platdata *plat = dev->platdata; + struct meson_serial_platdata *plat = dev->plat; fdt_addr_t addr; addr = dev_read_addr(dev); @@ -169,7 +169,7 @@ U_BOOT_DRIVER(serial_meson) = { .probe = meson_serial_probe, .ops = &meson_serial_ops, .ofdata_to_platdata = meson_serial_ofdata_to_platdata, - .platdata_auto = sizeof(struct meson_serial_platdata), + .plat_auto = sizeof(struct meson_serial_platdata), }; #ifdef CONFIG_DEBUG_UART_MESON |