V4L/DVB 4949b: Fix container_of pointer retreival

Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
Thierry MERLE 2006-12-10 13:31:04 -03:00 committed by Mauro Carvalho Chehab
parent 67952e8cb1
commit 1de1bf0633
2 changed files with 1 additions and 3 deletions

View file

@ -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);

View file

@ -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;