Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193131
b: refs/heads/master
c: aeb506a
h: refs/heads/master
i:
  193129: e7bcdfd
  193127: 62da5e0
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed May 19, 2010
1 parent 5f4ddf7 commit 951edbc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f2b305cd6711b7b3ce30db93b50bc5d6312950c8
refs/heads/master: aeb506aaaa08bc1910650666463843a73c34b139
5 changes: 1 addition & 4 deletions trunk/drivers/media/video/usbvision/usbvision-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1649,8 +1649,6 @@ static int __devinit usbvision_probe(struct usb_interface *intf,
usbvision_configure_video(usbvision);
mutex_unlock(&usbvision->lock);


usb_set_intfdata (intf, usbvision);
usbvision_create_sysfs(usbvision->vdev);

PDEBUG(DBG_PROBE, "success");
Expand All @@ -1668,7 +1666,7 @@ static int __devinit usbvision_probe(struct usb_interface *intf,
*/
static void __devexit usbvision_disconnect(struct usb_interface *intf)
{
struct usb_usbvision *usbvision = usb_get_intfdata(intf);
struct usb_usbvision *usbvision = to_usbvision(usb_get_intfdata(intf));

PDEBUG(DBG_PROBE, "");

Expand All @@ -1677,7 +1675,6 @@ static void __devexit usbvision_disconnect(struct usb_interface *intf)
"%s: usb_get_intfdata() failed\n", __func__);
return;
}
usb_set_intfdata (intf, NULL);

mutex_lock(&usbvision->lock);

Expand Down
5 changes: 5 additions & 0 deletions trunk/drivers/media/video/usbvision/usbvision.h
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,11 @@ struct usb_usbvision {
int ComprBlockTypes[4];
};

static inline struct usb_usbvision *to_usbvision(struct v4l2_device *v4l2_dev)
{
return container_of(v4l2_dev, struct usb_usbvision, v4l2_dev);
}

#define call_all(usbvision, o, f, args...) \
v4l2_device_call_all(&usbvision->v4l2_dev, 0, o, f, ##args)

Expand Down

0 comments on commit 951edbc

Please sign in to comment.