Skip to content

Commit

Permalink
powerpc/cell/spufs: Fix status attribute permission
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Benjamin Herrenschmidt committed May 6, 2013
1 parent 5fe0c1f commit 96cf3f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/cell/spu_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ static ssize_t spu_stat_show(struct device *dev,
spu->stats.libassist);
}

static DEVICE_ATTR(stat, 0644, spu_stat_show, NULL);
static DEVICE_ATTR(stat, 0444, spu_stat_show, NULL);

#ifdef CONFIG_KEXEC

Expand Down

0 comments on commit 96cf3f6

Please sign in to comment.