X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=cp2101.c;h=53dd422b1f16d1065bb647e0447c9c1237691389;hb=820d30d0a79489058bf835d938e628fc7d475748;hp=8f371d266532d1c074fecc7c762ffdccd9b9882b;hpb=21b2531f5a9474b90f6b984a9f71b027678a0ef7;p=cp210x.git 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,