summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2008-08-30 13:11:16 -0500
committerMike Isely <isely@pobox.com>2008-08-30 13:11:16 -0500
commit3f4ff57d35135b562a224a6a2eefcbdb27aec539 (patch)
tree615023f2c305a5964af198665eb1195b41b2aa76 /linux/drivers/media/video
parent1072381235b9397551ff19c608a25b47ef5c7994 (diff)
downloadmediapointer-dvb-s2-3f4ff57d35135b562a224a6a2eefcbdb27aec539.tar.gz
mediapointer-dvb-s2-3f4ff57d35135b562a224a6a2eefcbdb27aec539.tar.bz2
pvrusb2: Remove BKL
From: Mike Isely <isely@pobox.com> The earlier change from Hans Verkuil that pushed the BKL from video_open() down into the drivers should be unneeded for the pvrusb2 driver. This driver's implementation for open already protects its internal structures through other means, thus the BKL is not required. This change reverses Hans' previous change, for the pvrusb2 driver. It probably would have been a good idea for Hans to previously have asked for my ack before committing his change. Priority: normal Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r--linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c b/linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
index c1cc0e88b..1619c2756 100644
--- a/linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
+++ b/linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
@@ -933,7 +933,6 @@ static int pvr2_v4l2_open(struct inode *inode, struct file *file)
unsigned int input_cnt,idx;
int ret = 0;
- lock_kernel();
dip = container_of(video_devdata(file),struct pvr2_v4l2_dev,devbase);
vp = dip->v4lp;
@@ -944,13 +943,11 @@ static int pvr2_v4l2_open(struct inode *inode, struct file *file)
if (!pvr2_hdw_dev_ok(hdw)) {
pvr2_trace(PVR2_TRACE_OPEN_CLOSE,
"pvr2_v4l2_open: hardware not ready");
- unlock_kernel();
return -EIO;
}
fhp = kzalloc(sizeof(*fhp),GFP_KERNEL);
if (!fhp) {
- unlock_kernel();
return -ENOMEM;
}
@@ -980,7 +977,6 @@ static int pvr2_v4l2_open(struct inode *inode, struct file *file)
fhp);
kfree(fhp);
- unlock_kernel();
return ret;
}
@@ -997,7 +993,6 @@ static int pvr2_v4l2_open(struct inode *inode, struct file *file)
"Destroying pvr_v4l2_fh id=%p (input map failure)",
fhp);
kfree(fhp);
- unlock_kernel();
return -ENOMEM;
}
input_cnt = 0;
@@ -1021,7 +1016,6 @@ static int pvr2_v4l2_open(struct inode *inode, struct file *file)
v4l2_prio_open(&vp->prio,&fhp->prio);
fhp->fw_mode_flag = pvr2_hdw_cpufw_get_enabled(hdw);
- unlock_kernel();
return 0;
}