On Sun, 14 May 2006, Jan Henrik Sylvester wrote:
make was now successful for r59, too, but 'modprobe -v zd1211' fails:
insmod /lib/modules/2.6.8-2-386/net/td1211.ko
FATAL: Error inserting zd1211 (/lib/modules/2.6.8-2-386/net/zd1211.ko):
Unknow symbol in module, or unknown perameter (see dmesg)
'dmesg' returns (three times):
zd1211: Unknown symbol usb_unlock_device
zd1211: Unknown symbol usb_lock_device_for_reset
Try the patch attached.
Regards
Index: zdusb.c
===================================================================
--- zdusb.c (revision 74)
+++ zdusb.c (working copy)
@@ -191,12 +191,17 @@
// Reset for kernels < 2.5.0 is done on exit:
// 2.4.x's hotplug panics when resetting in init
// 2.5.x does not allow resets on exit
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10))
+ // 2.6.10 and newer provide usb_lock_device...
locked = usb_lock_device_for_reset(interface_to_usbdev(interface),
interface);
if (locked >= 0)
usb_reset_device(interface_to_usbdev(interface));
if (locked > 0)
usb_unlock_device(interface_to_usbdev(interface));
+#else
+ usb_reset_device(interface_to_usbdev(interface));
#endif
+#endif
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))