diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-03 15:02:18 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-03 15:02:18 -0500 |
commit | f60a0a79846abed04ad5abddb5dafd14b66e1ab0 (patch) | |
tree | 4c4e3bc4692e6e8f08d2289f3bcab28035a571a1 /drivers/media/video/cx23885/cx23885-417.c | |
parent | 2f983570010a0dcb26d988da02d7ccfad00c807c (diff) | |
parent | b15dd79ea06b04a7ecee95f62ce7b6a3547dbb0a (diff) |
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6
* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (34 commits)
V4L/DVB (10173): Missing v4l2_prio_close in radio_release
V4L/DVB (10172): add DVB_DEVICE_TYPE= to uevent
V4L/DVB (10171): Use usb_set_intfdata
V4L/DVB (10170): tuner-simple: prevent possible OOPS caused by divide by zero error
V4L/DVB (10168): sms1xxx: fix inverted gpio for lna control on tiger r2
V4L/DVB (10167): sms1xxx: add support for inverted gpio
V4L/DVB (10166): dvb frontend: stop using non-C99 compliant comments
V4L/DVB (10165): Add FE_CAN_2G_MODULATION flag to frontends that support DVB-S2
V4L/DVB (10164): Add missing S2 caps flag to S2API
V4L/DVB (10163): em28xx: allocate adev together with struct em28xx dev
V4L/DVB (10162): tuner-simple: Fix tuner type set message
V4L/DVB (10161): saa7134: fix autodetection for AVer TV GO 007 FM Plus
V4L/DVB (10160): em28xx: update chip id for em2710
V4L/DVB (10157): Add USB ID for the Sil4701 radio from DealExtreme
V4L/DVB (10156): saa7134: Add support for Avermedia AVer TV GO 007 FM Plus
V4L/DVB (10155): Add TEA5764 radio driver
V4L/DVB (10154): saa7134: fix a merge conflict on Behold H6 board
V4L/DVB (10153): Add the Beholder H6 card to DVB-T part of sources.
V4L/DVB (10152): Change configuration of the Beholder H6 card
V4L/DVB (10151): Fix I2C bridge error in zl10353
...
Diffstat (limited to 'drivers/media/video/cx23885/cx23885-417.c')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-417.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/media/video/cx23885/cx23885-417.c b/drivers/media/video/cx23885/cx23885-417.c index 798d24024353..8f1db57bd1dd 100644 --- a/drivers/media/video/cx23885/cx23885-417.c +++ b/drivers/media/video/cx23885/cx23885-417.c | |||
@@ -1027,12 +1027,13 @@ static int cx23885_initialize_codec(struct cx23885_dev *dev) | |||
1027 | printk(KERN_ERR "%s() f/w load failed\n", __func__); | 1027 | printk(KERN_ERR "%s() f/w load failed\n", __func__); |
1028 | return retval; | 1028 | return retval; |
1029 | } | 1029 | } |
1030 | dev->cx23417_mailbox = cx23885_find_mailbox(dev); | 1030 | retval = cx23885_find_mailbox(dev); |
1031 | if (dev->cx23417_mailbox < 0) { | 1031 | if (retval < 0) { |
1032 | printk(KERN_ERR "%s() mailbox < 0, error\n", | 1032 | printk(KERN_ERR "%s() mailbox < 0, error\n", |
1033 | __func__); | 1033 | __func__); |
1034 | return -1; | 1034 | return -1; |
1035 | } | 1035 | } |
1036 | dev->cx23417_mailbox = retval; | ||
1036 | retval = cx23885_api_cmd(dev, CX2341X_ENC_PING_FW, 0, 0); | 1037 | retval = cx23885_api_cmd(dev, CX2341X_ENC_PING_FW, 0, 0); |
1037 | if (retval < 0) { | 1038 | if (retval < 0) { |
1038 | printk(KERN_ERR | 1039 | printk(KERN_ERR |
@@ -1573,9 +1574,9 @@ static int vidioc_queryctrl(struct file *file, void *priv, | |||
1573 | return cx23885_queryctrl(dev, c); | 1574 | return cx23885_queryctrl(dev, c); |
1574 | } | 1575 | } |
1575 | 1576 | ||
1576 | static int mpeg_open(struct inode *inode, struct file *file) | 1577 | static int mpeg_open(struct file *file) |
1577 | { | 1578 | { |
1578 | int minor = iminor(inode); | 1579 | int minor = video_devdata(file)->minor; |
1579 | struct cx23885_dev *h, *dev = NULL; | 1580 | struct cx23885_dev *h, *dev = NULL; |
1580 | struct list_head *list; | 1581 | struct list_head *list; |
1581 | struct cx23885_fh *fh; | 1582 | struct cx23885_fh *fh; |
@@ -1617,7 +1618,7 @@ static int mpeg_open(struct inode *inode, struct file *file) | |||
1617 | return 0; | 1618 | return 0; |
1618 | } | 1619 | } |
1619 | 1620 | ||
1620 | static int mpeg_release(struct inode *inode, struct file *file) | 1621 | static int mpeg_release(struct file *file) |
1621 | { | 1622 | { |
1622 | struct cx23885_fh *fh = file->private_data; | 1623 | struct cx23885_fh *fh = file->private_data; |
1623 | struct cx23885_dev *dev = fh->dev; | 1624 | struct cx23885_dev *dev = fh->dev; |
@@ -1694,15 +1695,13 @@ static int mpeg_mmap(struct file *file, struct vm_area_struct *vma) | |||
1694 | return videobuf_mmap_mapper(&fh->mpegq, vma); | 1695 | return videobuf_mmap_mapper(&fh->mpegq, vma); |
1695 | } | 1696 | } |
1696 | 1697 | ||
1697 | static struct file_operations mpeg_fops = { | 1698 | static struct v4l2_file_operations mpeg_fops = { |
1698 | .owner = THIS_MODULE, | 1699 | .owner = THIS_MODULE, |
1699 | .open = mpeg_open, | 1700 | .open = mpeg_open, |
1700 | .release = mpeg_release, | 1701 | .release = mpeg_release, |
1701 | .read = mpeg_read, | 1702 | .read = mpeg_read, |
1702 | .poll = mpeg_poll, | 1703 | .poll = mpeg_poll, |
1703 | .mmap = mpeg_mmap, | 1704 | .mmap = mpeg_mmap, |
1704 | .ioctl = video_ioctl2, | ||
1705 | .llseek = no_llseek, | ||
1706 | }; | 1705 | }; |
1707 | 1706 | ||
1708 | static const struct v4l2_ioctl_ops mpeg_ioctl_ops = { | 1707 | static const struct v4l2_ioctl_ops mpeg_ioctl_ops = { |