aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/hdpvr/hdpvr-core.c2
-rw-r--r--drivers/media/video/hdpvr/hdpvr-video.c5
-rw-r--r--drivers/media/video/hdpvr/hdpvr.h3
3 files changed, 6 insertions, 4 deletions
diff --git a/drivers/media/video/hdpvr/hdpvr-core.c b/drivers/media/video/hdpvr/hdpvr-core.c
index e96aed42d19..2c49862b6d3 100644
--- a/drivers/media/video/hdpvr/hdpvr-core.c
+++ b/drivers/media/video/hdpvr/hdpvr-core.c
@@ -342,7 +342,7 @@ static int hdpvr_probe(struct usb_interface *interface,
342 } 342 }
343 mutex_unlock(&dev->io_mutex); 343 mutex_unlock(&dev->io_mutex);
344 344
345 if (hdpvr_register_videodev(dev, 345 if (hdpvr_register_videodev(dev, &interface->dev,
346 video_nr[atomic_inc_return(&dev_nr)])) { 346 video_nr[atomic_inc_return(&dev_nr)])) {
347 err("registering videodev failed"); 347 err("registering videodev failed");
348 goto error; 348 goto error;
diff --git a/drivers/media/video/hdpvr/hdpvr-video.c b/drivers/media/video/hdpvr/hdpvr-video.c
index d63bfccf784..9560e19d7cf 100644
--- a/drivers/media/video/hdpvr/hdpvr-video.c
+++ b/drivers/media/video/hdpvr/hdpvr-video.c
@@ -1193,7 +1193,8 @@ static const struct video_device hdpvr_video_template = {
1193 V4L2_STD_PAL_60, 1193 V4L2_STD_PAL_60,
1194}; 1194};
1195 1195
1196int hdpvr_register_videodev(struct hdpvr_device *dev, int devnum) 1196int hdpvr_register_videodev(struct hdpvr_device *dev, struct device *parent,
1197 int devnum)
1197{ 1198{
1198 /* setup and register video device */ 1199 /* setup and register video device */
1199 dev->video_dev = video_device_alloc(); 1200 dev->video_dev = video_device_alloc();
@@ -1204,7 +1205,7 @@ int hdpvr_register_videodev(struct hdpvr_device *dev, int devnum)
1204 1205
1205 *(dev->video_dev) = hdpvr_video_template; 1206 *(dev->video_dev) = hdpvr_video_template;
1206 strcpy(dev->video_dev->name, "Hauppauge HD PVR"); 1207 strcpy(dev->video_dev->name, "Hauppauge HD PVR");
1207 dev->video_dev->parent = &dev->udev->dev; 1208 dev->video_dev->parent = parent;
1208 video_set_drvdata(dev->video_dev, dev); 1209 video_set_drvdata(dev->video_dev, dev);
1209 1210
1210 if (video_register_device(dev->video_dev, VFL_TYPE_GRABBER, devnum)) { 1211 if (video_register_device(dev->video_dev, VFL_TYPE_GRABBER, devnum)) {
diff --git a/drivers/media/video/hdpvr/hdpvr.h b/drivers/media/video/hdpvr/hdpvr.h
index 9bc8051b597..3af415d81df 100644
--- a/drivers/media/video/hdpvr/hdpvr.h
+++ b/drivers/media/video/hdpvr/hdpvr.h
@@ -284,7 +284,8 @@ int get_input_lines_info(struct hdpvr_device *dev);
284 284
285/*========================================================================*/ 285/*========================================================================*/
286/* v4l2 registration */ 286/* v4l2 registration */
287int hdpvr_register_videodev(struct hdpvr_device *dev, int devnumber); 287int hdpvr_register_videodev(struct hdpvr_device *dev, struct device *parent,
288 int devnumber);
288 289
289int hdpvr_cancel_queue(struct hdpvr_device *dev); 290int hdpvr_cancel_queue(struct hdpvr_device *dev);
290 291