]> oss.titaniummirror.com Git - cp210x.git/commitdiff
Fix for linux 2.4.24.
authorsmckown <smckown@986fd584-583e-0410-b54d-b9fe63dff8e5>
Mon, 25 Aug 2008 20:01:38 +0000 (20:01 +0000)
committersmckown <smckown@986fd584-583e-0410-b54d-b9fe63dff8e5>
Mon, 25 Aug 2008 20:01:38 +0000 (20:01 +0000)
cp2101.c

index 8f371d266532d1c074fecc7c762ffdccd9b9882b..53dd422b1f16d1065bb647e0447c9c1237691389 100644 (file)
--- 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,