summaryrefslogtreecommitdiff
path: root/drivers/serial/serial_coreboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/serial/serial_coreboot.c')
-rw-r--r--drivers/serial/serial_coreboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/serial/serial_coreboot.c b/drivers/serial/serial_coreboot.c
index dba0ae45fb..ece27aca88 100644
--- a/drivers/serial/serial_coreboot.c
+++ b/drivers/serial/serial_coreboot.c
@@ -11,7 +11,7 @@
#include <serial.h>
#include <asm/arch/sysinfo.h>
-static int coreboot_ofdata_to_platdata(struct udevice *dev)
+static int coreboot_of_to_plat(struct udevice *dev)
{
struct ns16550_platdata *plat = dev_get_plat(dev);
struct cb_serial *cb_info = lib_sysinfo.serial;
@@ -39,7 +39,7 @@ U_BOOT_DRIVER(coreboot_uart) = {
.of_match = coreboot_serial_ids,
.priv_auto = sizeof(struct NS16550),
.plat_auto = sizeof(struct ns16550_platdata),
- .ofdata_to_platdata = coreboot_ofdata_to_platdata,
+ .of_to_plat = coreboot_of_to_plat,
.probe = ns16550_serial_probe,
.ops = &ns16550_serial_ops,
.flags = DM_FLAG_PRE_RELOC,