Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223386
b: refs/heads/master
c: 4f68775
h: refs/heads/master
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Dec 1, 2010
1 parent 17760ec commit 27717fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 697566939dc60048fca6e6dd69c7e089aaeb7ff8
refs/heads/master: 4f68775b7dfc6115169f689a42535486bf10977e
5 changes: 4 additions & 1 deletion trunk/drivers/media/radio/radio-timb.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ struct timbradio {
struct v4l2_subdev *sd_dsp;
struct video_device video_dev;
struct v4l2_device v4l2_dev;
struct mutex lock;
};


Expand Down Expand Up @@ -142,7 +143,7 @@ static const struct v4l2_ioctl_ops timbradio_ioctl_ops = {

static const struct v4l2_file_operations timbradio_fops = {
.owner = THIS_MODULE,
.ioctl = video_ioctl2,
.unlocked_ioctl = video_ioctl2,
};

static int __devinit timbradio_probe(struct platform_device *pdev)
Expand All @@ -164,13 +165,15 @@ static int __devinit timbradio_probe(struct platform_device *pdev)
}

tr->pdata = *pdata;
mutex_init(&tr->lock);

strlcpy(tr->video_dev.name, "Timberdale Radio",
sizeof(tr->video_dev.name));
tr->video_dev.fops = &timbradio_fops;
tr->video_dev.ioctl_ops = &timbradio_ioctl_ops;
tr->video_dev.release = video_device_release_empty;
tr->video_dev.minor = -1;
tr->video_dev.lock = &tr->lock;

strlcpy(tr->v4l2_dev.name, DRIVER_NAME, sizeof(tr->v4l2_dev.name));
err = v4l2_device_register(NULL, &tr->v4l2_dev);
Expand Down

0 comments on commit 27717fc

Please sign in to comment.