aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/acer-wmi.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-06-30 10:20:23 +0800
committerMatthew Garrett <mjg@redhat.com>2010-08-03 09:48:52 -0400
commit370525df9dfb4f55dfc177b0c31c26d77694c992 (patch)
treeb60e3baad4c844fabd2e516fd68d627c564a0f26 /drivers/platform/x86/acer-wmi.c
parentd8eca1105fe2039e102c6a8a915d0af937b1b593 (diff)
downloadkernel_samsung_aries-370525df9dfb4f55dfc177b0c31c26d77694c992.zip
kernel_samsung_aries-370525df9dfb4f55dfc177b0c31c26d77694c992.tar.gz
kernel_samsung_aries-370525df9dfb4f55dfc177b0c31c26d77694c992.tar.bz2
acer-wmi: set permissions on interface file to S_IRUGO
The interface file is not writable, thus set permissions to S_IRUGO. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform/x86/acer-wmi.c')
-rw-r--r--drivers/platform/x86/acer-wmi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c
index 56e6f10..aacd060 100644
--- a/drivers/platform/x86/acer-wmi.c
+++ b/drivers/platform/x86/acer-wmi.c
@@ -1084,8 +1084,7 @@ static ssize_t show_interface(struct device *dev, struct device_attribute *attr,
}
}
-static DEVICE_ATTR(interface, S_IWUGO | S_IRUGO | S_IWUSR,
- show_interface, NULL);
+static DEVICE_ATTR(interface, S_IRUGO, show_interface, NULL);
/*
* debugfs functions