From 9cd30c2f54d22a2dc8179feebd35507805df8034 Mon Sep 17 00:00:00 2001 From: Bernd Porr Date: Sat, 28 May 2005 23:27:16 +0000 Subject: [PATCH] urb_kill is available from 2.6.8 and not from 2.6.10. This affects especially sarge which works with 2.6.8. The urb_kill command is much safer than urb_unlink. --- comedi/drivers/usbduxfast.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comedi/drivers/usbduxfast.c b/comedi/drivers/usbduxfast.c index c2b83058..3270233c 100644 --- a/comedi/drivers/usbduxfast.c +++ b/comedi/drivers/usbduxfast.c @@ -234,7 +234,7 @@ static int usbduxfastsub_unlink_InURBs(usbduxfastsub_t* usbduxfastsub_tmp) { if (usbduxfastsub_tmp && usbduxfastsub_tmp->urbIn) { usbduxfastsub_tmp->ai_cmd_running=0; -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,8) j=usb_unlink_urb(usbduxfastsub_tmp->urbIn); if (j<0) { err=j; @@ -1448,7 +1448,7 @@ static void tidy_up(usbduxfastsub_t* usbduxfastsub_tmp) { usbduxfastsub_tmp->probed=0; if (usbduxfastsub_tmp->urbIn) { -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,8) // waits until a running transfer is over // thus, under 2.4 hotplugging while a command // is running is not safe -- 2.26.2