aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/denverton_ns/bootblock/uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/denverton_ns/bootblock/uart.c')
-rw-r--r--src/soc/intel/denverton_ns/bootblock/uart.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/soc/intel/denverton_ns/bootblock/uart.c b/src/soc/intel/denverton_ns/bootblock/uart.c
index 9af42ee217..7d97661bfb 100644
--- a/src/soc/intel/denverton_ns/bootblock/uart.c
+++ b/src/soc/intel/denverton_ns/bootblock/uart.c
@@ -31,8 +31,11 @@ static void pci_early_hsuart_device_probe(u8 bus, u8 dev, u8 func,
u32 mmio_base)
{
register uint16_t reg16;
-
- device_t uart_dev = PCI_DEV(bus, dev, func);
+#if defined(__SIMPLE_DEVICE__)
+ pci_devfn_t uart_dev = PCI_DEV(bus, dev, func);
+#else
+ struct device *uart_dev = PCI_DEV(bus, dev, func);
+#endif
/* We're using MMIO for HSUARTs. This section is needed for logging
* from FSP only