From: Axel Lin Date: Wed, 30 Jun 2010 02:20:23 +0000 (+0800) Subject: acer-wmi: set permissions on interface file to S_IRUGO X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=370525df9dfb4f55dfc177b0c31c26d77694c992;p=linux-beck.git 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 Signed-off-by: Matthew Garrett --- diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c index 56e6f1040e4f..aacd0602f859 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