From: Richard Holden Date: Sun, 19 Oct 2008 03:27:53 +0000 (-0700) Subject: phonedev: remove BKL X-Git-Tag: v2.6.28-rc1~166 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=60c11d2abf4ef811d0ce3ea34279746729c4c6fc;p=linux-2.6-omap-h63xx.git phonedev: remove BKL The phone_device array is covered by the phone_lock mutex in all cases and request_module no longer needs the BKL so we can remove the only remaining instance of the BKL from phonedev. Signed-off-by: Richard Holden Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/telephony/phonedev.c b/drivers/telephony/phonedev.c index 4d74ba36c3a..37caf4d6903 100644 --- a/drivers/telephony/phonedev.c +++ b/drivers/telephony/phonedev.c @@ -54,7 +54,6 @@ static int phone_open(struct inode *inode, struct file *file) if (minor >= PHONE_NUM_DEVICES) return -ENODEV; - lock_kernel(); mutex_lock(&phone_lock); p = phone_device[minor]; if (p) @@ -81,7 +80,6 @@ static int phone_open(struct inode *inode, struct file *file) fops_put(old_fops); end: mutex_unlock(&phone_lock); - unlock_kernel(); return err; }