summaryrefslogtreecommitdiff
path: root/arch/x86/cpu/apollolake/uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/cpu/apollolake/uart.c')
-rw-r--r--arch/x86/cpu/apollolake/uart.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/cpu/apollolake/uart.c b/arch/x86/cpu/apollolake/uart.c
index 8e6dfdb630..e523d85b1b 100644
--- a/arch/x86/cpu/apollolake/uart.c
+++ b/arch/x86/cpu/apollolake/uart.c
@@ -16,6 +16,7 @@
#include <asm/io.h>
#include <asm/pci.h>
#include <asm/lpss.h>
+#include <dm/device-internal.h>
/* Low-power Subsystem (LPSS) clock register */
enum {
@@ -105,7 +106,7 @@ static int apl_ns16550_of_to_plat(struct udevice *dev)
plat->clock = dtplat->clock_frequency;
plat->fcr = UART_FCR_DEFVAL;
plat->bdf = pci_ofplat_get_devfn(dtplat->reg[0]);
- dev->plat = plat;
+ dev_set_plat(dev, plat);
#else
int ret;