X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=UDI%2Fdrivers%2Fuart_16c550%2Fuart16c550.c;h=510bc47202e8b3a149a0e9d199d956fe45e407c4;hb=10949658e20bd7b35f9ebe1d9354119d993e115b;hp=4499b29c4b84792197055bd5a12339d7025cbcd4;hpb=b0fcd19d5d83782441e5123ab07a111ce3e7ace7;p=tpg%2Facess2.git 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; }