soc: nexell: remove the redefined ATTR_MODE
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 10 Dec 2018 05:38:20 +0000 (14:38 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 29 Jan 2019 02:25:39 +0000 (11:25 +0900)
ATTR_MODE is already defined in include/linux/fs.h.
Instead, use S_IRUSR | S_IRGRP | S_IROTH (0x444) in stat.h

Change-Id: Ia22a74ac628ad0899b8aac36c45384aa17f7709c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/soc/nexell/s5pxx18/cpu-sys.c

index 18b380c246025a67fa30ec10db6cda57ef94871e..ce9813dd3578b9e735a0a145a3e05e4eea949bf1 100644 (file)
@@ -233,13 +233,15 @@ static ssize_t sys_id_show(struct device *pdev, struct device_attribute *attr,
        return (s - buf);
 }
 
-#define        ATTR_MODE       0644
 static struct device_attribute __guid__ =
-                       __ATTR(guid, ATTR_MODE, sys_id_show, NULL);
+                       __ATTR(guid, S_IRUSR | S_IRGRP | S_IROTH,
+                                       sys_id_show, NULL);
 static struct device_attribute __uuid__ =
-                       __ATTR(uuid, ATTR_MODE, sys_id_show, NULL);
+                       __ATTR(uuid, S_IRUSR | S_IRGRP | S_IROTH,
+                                       sys_id_show, NULL);
 static struct device_attribute __name__ =
-                       __ATTR(name, ATTR_MODE, sys_id_show, NULL);
+                       __ATTR(name, S_IRUSR | S_IRGRP | S_IROTH,
+                                       sys_id_show, NULL);
 
 static struct attribute *sys_attrs[] = {
        &__guid__.attr,