summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2009-02-18 17:52:24 +0100
committerHans Verkuil <hverkuil@xs4all.nl>2009-02-18 17:52:24 +0100
commit7b62aa559970adaf22b84c7e776fbefc96d14dd1 (patch)
tree00b5faaed79fb8eda5598d7ce0ad35737bf605b8 /linux/drivers/media/video
parent4f77e897cb187126ad10aad97b2edc6a89395d79 (diff)
downloadmediapointer-dvb-s2-7b62aa559970adaf22b84c7e776fbefc96d14dd1.tar.gz
mediapointer-dvb-s2-7b62aa559970adaf22b84c7e776fbefc96d14dd1.tar.bz2
zoran: set correct parent of the video device.
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r--linux/drivers/media/video/zoran/zoran_card.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/video/zoran/zoran_card.c b/linux/drivers/media/video/zoran/zoran_card.c
index 5d0fa99f2..99a25218b 100644
--- a/linux/drivers/media/video/zoran/zoran_card.c
+++ b/linux/drivers/media/video/zoran/zoran_card.c
@@ -1138,6 +1138,7 @@ zr36057_init (struct zoran *zr)
* Now add the template and register the device unit.
*/
memcpy(zr->video_dev, &zoran_template, sizeof(zoran_template));
+ zr->video_dev->parent = &zr->pci_dev->dev;
strcpy(zr->video_dev->name, ZR_DEVNAME(zr));
err = video_register_device(zr->video_dev, VFL_TYPE_GRABBER, video_nr[zr->id]);
if (err < 0)