aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-07-23 23:10:46 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-01-03 22:54:55 -0500
commit9104e427f3e21ddb380ddc39752624365b5bffea (patch)
tree53d97658009c90e83bf6cf6502f621c5a940b363
parent2c9ede55ecec58099b72e4bb8eab719f32f72c31 (diff)
switch sysfs attr->mode to umode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--drivers/platform/x86/intel_menlow.c2
-rw-r--r--include/linux/sysfs.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/x86/intel_menlow.c b/drivers/platform/x86/intel_menlow.c
index abddc83e9fd..3271ac85115 100644
--- a/drivers/platform/x86/intel_menlow.c
+++ b/drivers/platform/x86/intel_menlow.c
@@ -389,7 +389,7 @@ static ssize_t bios_enabled_show(struct device *dev,
389 return sprintf(buf, "%s\n", bios_enabled ? "enabled" : "disabled"); 389 return sprintf(buf, "%s\n", bios_enabled ? "enabled" : "disabled");
390} 390}
391 391
392static int intel_menlow_add_one_attribute(char *name, int mode, void *show, 392static int intel_menlow_add_one_attribute(char *name, umode_t mode, void *show,
393 void *store, struct device *dev, 393 void *store, struct device *dev,
394 acpi_handle handle) 394 acpi_handle handle)
395{ 395{
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
index dac0859e644..d1994ec02c8 100644
--- a/include/linux/sysfs.h
+++ b/include/linux/sysfs.h
@@ -25,7 +25,7 @@ enum kobj_ns_type;
25 25
26struct attribute { 26struct attribute {
27 const char *name; 27 const char *name;
28 mode_t mode; 28 umode_t mode;
29#ifdef CONFIG_DEBUG_LOCK_ALLOC 29#ifdef CONFIG_DEBUG_LOCK_ALLOC
30 struct lock_class_key *key; 30 struct lock_class_key *key;
31 struct lock_class_key skey; 31 struct lock_class_key skey;