summaryrefslogtreecommitdiff
path: root/src/drivers/uart/oxpcie_early.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/uart/oxpcie_early.c')
-rw-r--r--src/drivers/uart/oxpcie_early.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/uart/oxpcie_early.c b/src/drivers/uart/oxpcie_early.c
index b012c5a77a..ff7d0cfd8a 100644
--- a/src/drivers/uart/oxpcie_early.c
+++ b/src/drivers/uart/oxpcie_early.c
@@ -55,9 +55,9 @@ static int oxpcie_uart_active(void)
return oxpcie_present;
}
-uintptr_t uart_platform_base(int idx)
+uintptr_t uart_platform_base(unsigned int idx)
{
- if ((idx >= 0) && (idx < 8) && oxpcie_uart_active())
+ if ((idx < 8) && oxpcie_uart_active())
return uart0_base + idx * 0x200;
return 0;
}