Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138333
b: refs/heads/master
c: a50ab29
h: refs/heads/master
i:
  138331: 13e3ff4
v: v3
  • Loading branch information
Janne Grunau authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent 2571f79 commit acfa12b
Show file tree
Hide file tree
Showing 4 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: d211bfcbd0f13f1234aaa6e565013dba051a408c
refs/heads/master: a50ab29185a9ec31e5a6999e53add0508653e889
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/hdpvr/hdpvr-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ static int hdpvr_probe(struct usb_interface *interface,
}
mutex_unlock(&dev->io_mutex);

if (hdpvr_register_videodev(dev,
if (hdpvr_register_videodev(dev, &interface->dev,
video_nr[atomic_inc_return(&dev_nr)])) {
err("registering videodev failed");
goto error;
Expand Down
5 changes: 3 additions & 2 deletions trunk/drivers/media/video/hdpvr/hdpvr-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,8 @@ static const struct video_device hdpvr_video_template = {
V4L2_STD_PAL_60,
};

int hdpvr_register_videodev(struct hdpvr_device *dev, int devnum)
int hdpvr_register_videodev(struct hdpvr_device *dev, struct device *parent,
int devnum)
{
/* setup and register video device */
dev->video_dev = video_device_alloc();
Expand All @@ -1204,7 +1205,7 @@ int hdpvr_register_videodev(struct hdpvr_device *dev, int devnum)

*(dev->video_dev) = hdpvr_video_template;
strcpy(dev->video_dev->name, "Hauppauge HD PVR");
dev->video_dev->parent = &dev->udev->dev;
dev->video_dev->parent = parent;
video_set_drvdata(dev->video_dev, dev);

if (video_register_device(dev->video_dev, VFL_TYPE_GRABBER, devnum)) {
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/media/video/hdpvr/hdpvr.h
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ int get_input_lines_info(struct hdpvr_device *dev);

/*========================================================================*/
/* v4l2 registration */
int hdpvr_register_videodev(struct hdpvr_device *dev, int devnumber);
int hdpvr_register_videodev(struct hdpvr_device *dev, struct device *parent,
int devnumber);

int hdpvr_cancel_queue(struct hdpvr_device *dev);

Expand Down

0 comments on commit acfa12b

Please sign in to comment.