27 #include <linux/module.h>
30 #include <linux/slab.h>
40 static int number_of_leds = 2;
43 #ifdef CONFIG_HISAX_DEBUG
60 struct usb_device *
dev = interface_to_usbdev(intf);
65 printk(
KERN_INFO "st541: found adapter VendorId %04x, ProductId %04x, LEDs %d\n",
81 for (i = 0; i < 2; i++) {
83 adapter->
bcs[
i].channel =
i;
84 adapter->
bcs[
i].b_if.ifc.priv = &adapter->
bcs[
i];
104 for (i = 0; i < 2; i++)
105 b_if[i] = &adapter->
bcs[i].b_if;
113 usb_set_intfdata(intf, adapter);
139 usb_set_intfdata(intf,
NULL);
180 static struct usb_driver st5481_usb_driver = {
181 .name =
"st5481_usb",
182 .probe = probe_st5481,
183 .disconnect = disconnect_st5481,
184 .id_table = st5481_ids,
185 .disable_hub_initiated_lpm = 1,
188 static int __init st5481_usb_init(
void)
192 #ifdef CONFIG_HISAX_DEBUG
196 printk(
KERN_INFO "hisax_st5481: ST5481 USB ISDN driver $Revision: 2.4.2.3 $\n");
202 retval = usb_register(&st5481_usb_driver);
214 static void __exit st5481_usb_exit(
void)