mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
Merge branch 'trivial' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl
* 'trivial' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl: block: autoconvert trivial BKL users to private mutex drivers: autoconvert trivial BKL users to private mutex ipmi: autoconvert trivial BKL users to private mutex mac: autoconvert trivial BKL users to private mutex mtd: autoconvert trivial BKL users to private mutex scsi: autoconvert trivial BKL users to private mutex Fix up trivial conflicts (due to addition of private mutex right next to deletion of a version string) in drivers/char/pcmcia/cm40[04]0_cs.c
This commit is contained in:
commit
c37927d435
100 changed files with 614 additions and 556 deletions
|
|
@ -34,10 +34,11 @@
|
|||
#include <linux/workqueue.h>
|
||||
#include <linux/pci.h>
|
||||
#include <linux/pci_hotplug.h>
|
||||
#include <linux/smp_lock.h>
|
||||
#include <linux/mutex.h>
|
||||
#include <linux/debugfs.h>
|
||||
#include "cpqphp.h"
|
||||
|
||||
static DEFINE_MUTEX(cpqphp_mutex);
|
||||
static int show_ctrl (struct controller *ctrl, char *buf)
|
||||
{
|
||||
char *out = buf;
|
||||
|
|
@ -147,7 +148,7 @@ static int open(struct inode *inode, struct file *file)
|
|||
struct ctrl_dbg *dbg;
|
||||
int retval = -ENOMEM;
|
||||
|
||||
lock_kernel();
|
||||
mutex_lock(&cpqphp_mutex);
|
||||
dbg = kmalloc(sizeof(*dbg), GFP_KERNEL);
|
||||
if (!dbg)
|
||||
goto exit;
|
||||
|
|
@ -160,7 +161,7 @@ static int open(struct inode *inode, struct file *file)
|
|||
file->private_data = dbg;
|
||||
retval = 0;
|
||||
exit:
|
||||
unlock_kernel();
|
||||
mutex_unlock(&cpqphp_mutex);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
@ -169,7 +170,7 @@ static loff_t lseek(struct file *file, loff_t off, int whence)
|
|||
struct ctrl_dbg *dbg;
|
||||
loff_t new = -1;
|
||||
|
||||
lock_kernel();
|
||||
mutex_lock(&cpqphp_mutex);
|
||||
dbg = file->private_data;
|
||||
|
||||
switch (whence) {
|
||||
|
|
@ -181,10 +182,10 @@ static loff_t lseek(struct file *file, loff_t off, int whence)
|
|||
break;
|
||||
}
|
||||
if (new < 0 || new > dbg->size) {
|
||||
unlock_kernel();
|
||||
mutex_unlock(&cpqphp_mutex);
|
||||
return -EINVAL;
|
||||
}
|
||||
unlock_kernel();
|
||||
mutex_unlock(&cpqphp_mutex);
|
||||
return (file->f_pos = new);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue