]> git.baikalelectronics.ru Git - kernel.git/commit
S3C2410: add error print if we cannot add attribute
authorBen Dooks <ben-fbdev@fluff.org>
Fri, 23 May 2008 20:04:56 +0000 (13:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 24 May 2008 16:56:12 +0000 (09:56 -0700)
commitea4378b595a111d238a17c73eab0fb6bf8d766d3
tree9e3824920e47db054f13dea3a13a029d4be926e5
parentf31fd095a55e79680970dd0407b7a7fdf3d6d0e8
S3C2410: add error print if we cannot add attribute

Fix the following warning by checking the result of device_create_file and
printing an error but not removing the device (loss of debug registers is
not fatal).

drivers/video/s3c2410fb.c:905: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Cc: Arnaud Patard <arnaud.patard@rtp-net.org>
Acked-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/s3c2410fb.c