diff options
Diffstat (limited to 'drivers/usb/misc/sisusbvga/sisusb.c')
-rw-r--r-- | drivers/usb/misc/sisusbvga/sisusb.c | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/drivers/usb/misc/sisusbvga/sisusb.c b/drivers/usb/misc/sisusbvga/sisusb.c index 9244d067cec1..cb7fa0eaf3ae 100644 --- a/drivers/usb/misc/sisusbvga/sisusb.c +++ b/drivers/usb/misc/sisusbvga/sisusb.c | |||
@@ -323,7 +323,7 @@ sisusb_bulkin_msg(struct sisusb_usb_data *sisusb, unsigned int pipe, void *data, | |||
323 | usb_kill_urb(urb); | 323 | usb_kill_urb(urb); |
324 | retval = -ETIMEDOUT; | 324 | retval = -ETIMEDOUT; |
325 | } else { | 325 | } else { |
326 | /* URB completed within timout */ | 326 | /* URB completed within timeout */ |
327 | retval = urb->status; | 327 | retval = urb->status; |
328 | readbytes = urb->actual_length; | 328 | readbytes = urb->actual_length; |
329 | } | 329 | } |
@@ -3195,20 +3195,6 @@ static int sisusb_probe(struct usb_interface *intf, | |||
3195 | 3195 | ||
3196 | sisusb->present = 1; | 3196 | sisusb->present = 1; |
3197 | 3197 | ||
3198 | #ifdef SISUSB_OLD_CONFIG_COMPAT | ||
3199 | { | ||
3200 | int ret; | ||
3201 | /* Our ioctls are all "32/64bit compatible" */ | ||
3202 | ret = register_ioctl32_conversion(SISUSB_GET_CONFIG_SIZE, NULL); | ||
3203 | ret |= register_ioctl32_conversion(SISUSB_GET_CONFIG, NULL); | ||
3204 | ret |= register_ioctl32_conversion(SISUSB_COMMAND, NULL); | ||
3205 | if (ret) | ||
3206 | dev_err(&sisusb->sisusb_dev->dev, "Error registering ioctl32 translations\n"); | ||
3207 | else | ||
3208 | sisusb->ioctl32registered = 1; | ||
3209 | } | ||
3210 | #endif | ||
3211 | |||
3212 | if (dev->speed == USB_SPEED_HIGH) { | 3198 | if (dev->speed == USB_SPEED_HIGH) { |
3213 | int initscreen = 1; | 3199 | int initscreen = 1; |
3214 | #ifdef INCL_SISUSB_CON | 3200 | #ifdef INCL_SISUSB_CON |
@@ -3271,19 +3257,6 @@ static void sisusb_disconnect(struct usb_interface *intf) | |||
3271 | 3257 | ||
3272 | usb_set_intfdata(intf, NULL); | 3258 | usb_set_intfdata(intf, NULL); |
3273 | 3259 | ||
3274 | #ifdef SISUSB_OLD_CONFIG_COMPAT | ||
3275 | if (sisusb->ioctl32registered) { | ||
3276 | int ret; | ||
3277 | sisusb->ioctl32registered = 0; | ||
3278 | ret = unregister_ioctl32_conversion(SISUSB_GET_CONFIG_SIZE); | ||
3279 | ret |= unregister_ioctl32_conversion(SISUSB_GET_CONFIG); | ||
3280 | ret |= unregister_ioctl32_conversion(SISUSB_COMMAND); | ||
3281 | if (ret) { | ||
3282 | dev_err(&sisusb->sisusb_dev->dev, "Error unregistering ioctl32 translations\n"); | ||
3283 | } | ||
3284 | } | ||
3285 | #endif | ||
3286 | |||
3287 | sisusb->present = 0; | 3260 | sisusb->present = 0; |
3288 | sisusb->ready = 0; | 3261 | sisusb->ready = 0; |
3289 | 3262 | ||