From: Jaehoon Chung Date: Mon, 10 Dec 2018 05:38:20 +0000 (+0900) Subject: soc: nexell: remove the redefined ATTR_MODE X-Git-Tag: submit/tizen/20190129.052023~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f3b5929c87070e3864b4e96cb04041f2732b874b;p=profile%2Fcommon%2Fplatform%2Fkernel%2Flinux-artik7.git soc: nexell: remove the redefined ATTR_MODE 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 --- diff --git a/drivers/soc/nexell/s5pxx18/cpu-sys.c b/drivers/soc/nexell/s5pxx18/cpu-sys.c index 18b380c24602..ce9813dd3578 100644 --- a/drivers/soc/nexell/s5pxx18/cpu-sys.c +++ b/drivers/soc/nexell/s5pxx18/cpu-sys.c @@ -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,