提交 86bb4a21 编写于 作者: M Markus Rechberger 提交者: Linus Torvalds

[PATCH] v4l: 814: cleanup dev assignment

- Cleanup dev assignment
Signed-off-by: NMarkus Rechberger <mrechberger@gmail.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 9c75541f
...@@ -357,20 +357,10 @@ static void em2820_release_resources(struct em2820 *dev) ...@@ -357,20 +357,10 @@ static void em2820_release_resources(struct em2820 *dev)
* em2820_v4l2_close() * em2820_v4l2_close()
* stops streaming and deallocates all resources allocated by the v4l2 calls and ioctls * stops streaming and deallocates all resources allocated by the v4l2 calls and ioctls
*/ */
static int em2820_v4l2_close(struct inode *inode, struct file *file) static int em2820_v4l2_close(struct inode *inode, struct file *filp)
{ {
int errCode; int errCode;
int minor = iminor(inode); struct em2820 *dev=filp->private_data;
struct em2820 *h,*dev = NULL;
struct list_head *list;
list_for_each(list,&em2820_devlist) {
h = list_entry(list, struct em2820, devlist);
if (h->vdev->minor == minor) {
dev = h;
}
}
em2820_videodbg("users=%d", dev->users); em2820_videodbg("users=%d", dev->users);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部