projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cae710
)
sony-laptop: Eliminate BKL in ioctls
author
Alan Cox
<alan@lxorguk.ukuu.org.uk>
Thu, 26 Mar 2009 12:58:19 +0000
(21:58 +0900)
committer
Len Brown
<len.brown@intel.com>
Fri, 27 Mar 2009 16:19:08 +0000
(12:19 -0400)
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Mattia Dongili <malattia@linux.it>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/sony-laptop.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/platform/x86/sony-laptop.c
b/drivers/platform/x86/sony-laptop.c
index 4f932889569b7d73c6fe4fe1d50b826a379d3eb5..813d0e03d9c5340dec8dbc5536cdce71003bd964 100644
(file)
--- a/
drivers/platform/x86/sony-laptop.c
+++ b/
drivers/platform/x86/sony-laptop.c
@@
-2224,8
+2224,8
@@
static int ec_read16(u8 addr, u16 *value)
return 0;
}
-static
int sonypi_misc_ioctl(struct inode *ip, struct file *fp
,
-
unsigned int cmd,
unsigned long arg)
+static
long sonypi_misc_ioctl(struct file *fp, unsigned int cmd
,
+
unsigned long arg)
{
int ret = 0;
void __user *argp = (void __user *)arg;
@@
-2359,7
+2359,7
@@
static const struct file_operations sonypi_misc_fops = {
.open = sonypi_misc_open,
.release = sonypi_misc_release,
.fasync = sonypi_misc_fasync,
- .
ioctl
= sonypi_misc_ioctl,
+ .
unlocked_ioctl
= sonypi_misc_ioctl,
};
static struct miscdevice sonypi_misc_device = {