aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-05-05 22:02:05 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-05-05 22:02:05 -0400
commit96cf3f66debbff7bc880ea747c10eef2d977a6fe (patch)
tree7a920b9221de57768b83ee0f138c7cb73a1de859 /arch/powerpc/platforms
parent5fe0c1f2f0dca3351536284b0180a79f341b7854 (diff)
powerpc/cell/spufs: Fix status attribute permission
We are registering the attribute with permission 0644 but it doesn't have a store callback, which causes WARN_ON's during boot. Fix the permission. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r--arch/powerpc/platforms/cell/spu_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/spu_base.c b/arch/powerpc/platforms/cell/spu_base.c
index 8b1213993b10..f85db3a69b4a 100644
--- a/arch/powerpc/platforms/cell/spu_base.c
+++ b/arch/powerpc/platforms/cell/spu_base.c
@@ -715,7 +715,7 @@ static ssize_t spu_stat_show(struct device *dev,
715 spu->stats.libassist); 715 spu->stats.libassist);
716} 716}
717 717
718static DEVICE_ATTR(stat, 0644, spu_stat_show, NULL); 718static DEVICE_ATTR(stat, 0444, spu_stat_show, NULL);
719 719
720#ifdef CONFIG_KEXEC 720#ifdef CONFIG_KEXEC
721 721