From: smckown Date: Mon, 25 Aug 2008 20:01:38 +0000 (+0000) Subject: Fix for linux 2.4.24. X-Git-Tag: debian/0.11.2-5.2tmi~32 X-Git-Url: https://oss.titaniummirror.com/gitweb?p=cp210x.git;a=commitdiff_plain;h=820d30d0a79489058bf835d938e628fc7d475748 Fix for linux 2.4.24. --- diff --git a/cp2101.c b/cp2101.c index 8f371d2..53dd422 100644 --- a/cp2101.c +++ b/cp2101.c @@ -146,9 +146,15 @@ static struct usb_serial_device_type cp2101_device = { .name = "CP2101/CP2102/CP2103 USB to UART Bridge", #endif .id_table = id_table, +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) .num_interrupt_in = 0, .num_bulk_in = 0, .num_bulk_out = 0, +#else + .num_interrupt_in = NUM_DONT_CARE, + .num_bulk_in = NUM_DONT_CARE, + .num_bulk_out = NUM_DONT_CARE, +#endif .num_ports = 1, .open = cp2101_open, .close = cp2101_close,