From: John Hodge Date: Sat, 24 May 2014 14:51:27 +0000 (+0800) Subject: UDI/uart_16c550 - Fix includes in preparation for comming commit X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=296775cb1b14222ddee8a993ae796d5ba09fc4e6;p=tpg%2Facess2.git UDI/uart_16c550 - Fix includes in preparation for comming commit --- 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; }