Skip to content

Commit

Permalink
V4L/DVB 4949b: Fix container_of pointer retreival
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Thierry MERLE authored and Mauro Carvalho Chehab committed Dec 10, 2006
1 parent 67952e8 commit 1de1bf0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/media/video/usbvision/usbvision-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2218,7 +2218,7 @@ int usbvision_power_on(struct usb_usbvision *usbvision)
// to call usbvision_power_off from task queue
static void call_usbvision_power_off(struct work_struct *work)
{
struct usb_usbvision *usbvision = container_of(work, struct usb_usbvision, work);
struct usb_usbvision *usbvision = container_of(work, struct usb_usbvision, powerOffWork);

PDEBUG(DBG_FUNC, "");
down_interruptible(&usbvision->lock);
Expand Down
2 changes: 0 additions & 2 deletions drivers/media/video/usbvision/usbvision.h
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,6 @@ struct usb_usbvision {
struct video_device *rdev; /* Radio Device */
struct video_device *vbi; /* VBI Device */

struct work_struct work;

/* i2c Declaration Section*/
struct i2c_adapter i2c_adap;
struct i2c_algo_usb_data i2c_algo;
Expand Down

0 comments on commit 1de1bf0

Please sign in to comment.