From 296775cb1b14222ddee8a993ae796d5ba09fc4e6 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 24 May 2014 22:51:27 +0800 Subject: [PATCH] UDI/uart_16c550 - Fix includes in preparation for comming commit --- UDI/drivers/uart_16c550/uart16c550.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UDI/drivers/uart_16c550/uart16c550.c b/UDI/drivers/uart_16c550/uart16c550.c index 4499b29c..510bc472 100644 --- a/UDI/drivers/uart_16c550/uart16c550.c +++ b/UDI/drivers/uart_16c550/uart16c550.c @@ -6,9 +6,11 @@ * - UDI initialisation */ #define UDI_VERSION 0x101 +#define UDI_PCI_VERSION 0x101 #define UDI_PHYSIO_VERSION 0x101 #include #include +#include #include "uart16c550_common.h" #include "uart16c550_pio.h" @@ -102,7 +104,7 @@ void uart_bus_dev_bus_bind_ack(udi_bus_bind_cb_t *cb, void uart_bus_dev_bind__pio_map(udi_cb_t *gcb, udi_pio_handle_t new_pio_handle) { rdata_t *rdata = gcb->context; - if( rdata->init.pio_index != -1 ) + if( rdata->init.pio_index != (udi_index_t)-1 ) { rdata->pio_handles[rdata->init.pio_index] = new_pio_handle; } -- 2.20.1