]> git.karo-electronics.de Git - linux-beck.git/commitdiff
switch sysfs attr->mode to umode_t
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 24 Jul 2011 03:10:46 +0000 (23:10 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 4 Jan 2012 03:54:55 +0000 (22:54 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/platform/x86/intel_menlow.c
include/linux/sysfs.h

index abddc83e9fd7eb55d3e0ad3c0a4d8a5ad01070f0..3271ac85115e4914237c902575e0f694ea0dd6f9 100644 (file)
@@ -389,7 +389,7 @@ static ssize_t bios_enabled_show(struct device *dev,
        return sprintf(buf, "%s\n", bios_enabled ? "enabled" : "disabled");
 }
 
-static int intel_menlow_add_one_attribute(char *name, int mode, void *show,
+static int intel_menlow_add_one_attribute(char *name, umode_t mode, void *show,
                                          void *store, struct device *dev,
                                          acpi_handle handle)
 {
index dac0859e6440eff158588997a66cc3414520ce96..d1994ec02c89389a739f1a620ff5bb7436fd63f3 100644 (file)
@@ -25,7 +25,7 @@ enum kobj_ns_type;
 
 struct attribute {
        const char              *name;
-       mode_t                  mode;
+       umode_t                 mode;
 #ifdef CONFIG_DEBUG_LOCK_ALLOC
        struct lock_class_key   *key;
        struct lock_class_key   skey;