22 #include <linux/kernel.h>
23 #include <linux/errno.h>
25 #include <linux/slab.h>
26 #include <linux/module.h>
30 #define DRIVER_VERSION "v1.1"
32 #define DRIVER_DESC "PlayStation 2 Trance Vibrator driver"
34 #define TRANCEVIBRATOR_VENDOR_ID 0x0b49
35 #define TRANCEVIBRATOR_PRODUCT_ID 0x064f
80 0,
NULL, 0, USB_CTRL_GET_TIMEOUT);
94 struct usb_device *
udev = interface_to_usbdev(interface);
100 dev_err(&interface->dev,
"Out of memory\n");
106 usb_set_intfdata(interface, dev);
109 goto error_create_file;
115 usb_set_intfdata(interface,
NULL);
125 dev = usb_get_intfdata (interface);
127 usb_set_intfdata(interface,
NULL);
133 static struct usb_driver tv_driver = {
134 .name =
"trancevibrator",
136 .disconnect = tv_disconnect,
137 .id_table = id_table,