summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Olivain <julien.olivain@freescale.com>2014-03-26 18:38:02 +0100
committerLiu Ying <Ying.Liu@freescale.com>2014-03-27 11:56:33 +0800
commiteb0db0e90adc21a35ff86260b726aa2468b8e6c8 (patch)
treea9faa4cab710706d50fb3e3c876cabf2f01fc843
parent5b5f5e3f7b1dd41022e6e587460fd912fcd481d0 (diff)
ENGR00305465 MXC IPUv3 fb: Fix permissions of fsl_disp_property sysfs entry
Set the correct permissions of the fsl_disp_property sysfs entry. Acked-by: Liu Ying <Ying.Liu@freescale.com> Signed-off-by: Julien Olivain <julien.olivain@freescale.com> (cherry picked from commit 9db2d982c90b6edb3dfebe03a68f50f381bb99bb)
-rw-r--r--drivers/video/mxc/mxc_ipuv3_fb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/video/mxc/mxc_ipuv3_fb.c b/drivers/video/mxc/mxc_ipuv3_fb.c
index 49abe8c284fc..e5b8733249c2 100644
--- a/drivers/video/mxc/mxc_ipuv3_fb.c
+++ b/drivers/video/mxc/mxc_ipuv3_fb.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2004-2013 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright 2004-2014 Freescale Semiconductor, Inc. All Rights Reserved.
*/
/*
@@ -1874,7 +1874,8 @@ static ssize_t swap_disp_chan(struct device *dev,
console_unlock();
return count;
}
-static DEVICE_ATTR(fsl_disp_property, 644, show_disp_chan, swap_disp_chan);
+static DEVICE_ATTR(fsl_disp_property, S_IWUSR | S_IRUGO,
+ show_disp_chan, swap_disp_chan);
static ssize_t show_disp_dev(struct device *dev,
struct device_attribute *attr, char *buf)