From 820d30d0a79489058bf835d938e628fc7d475748 Mon Sep 17 00:00:00 2001 From: smckown Date: Mon, 25 Aug 2008 20:01:38 +0000 Subject: [PATCH] Fix for linux 2.4.24. --- cp2101.c | 6 ++++++ 1 file changed, 6 insertions(+) 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, -- 2.39.2