From: Srivatsa S. Bhat Date: Tue, 30 Apr 2013 09:47:16 +0000 (+0530) Subject: EDAC: Don't give write permission to read-only files X-Git-Tag: v3.10-rc1~38^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8c64d165ccfd2274058ac84e0c680f9b48c4ec1;p=pandora-kernel.git EDAC: Don't give write permission to read-only files I get the following warning on boot: ------------[ cut here ]------------ WARNING: at drivers/base/core.c:575 device_create_file+0x9a/0xa0() Hardware name: -[8737R2A]- Write permission without 'store' ... Drilling down, this is related to dynamic channel ce_count attribute files sporting a S_IWUSR mode without a ->store() function. Looking around, it appears that they aren't supposed to have a ->store() function. So remove the bogus write permission to get rid of the warning. Signed-off-by: Srivatsa S. Bhat Cc: Mauro Carvalho Chehab Cc: # 3.[89] [ shorten commit message ] Signed-off-by: Borislav Petkov --- Reading git-diff-tree failed