drivers/video/aty/radeon_base.c: notify user if sysfs_create_bin_file() failed
authorTony Breeds <tony@bakeyournoodle.com>
Thu, 24 Jul 2008 04:31:16 +0000 (21:31 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:37 +0000 (10:47 -0700)
commitfcea8030b3c2e71ad89f080901c63a04f07881c8
tree942140d583a70b49f0dc3a7df52d9e66582907be
parent7951ac91c7d45b61f54f1cdabc24b52b40785de6
drivers/video/aty/radeon_base.c: notify user if sysfs_create_bin_file() failed

Current kernel builds warn about:
drivers/video/aty/radeon_base.c: In function 'radeonfb_pci_register':
drivers/video/aty/radeon_base.c:2334: warning: ignoring return value of 'sysfs_create_bin_file', declared with attribute warn_unused_result
drivers/video/aty/radeon_base.c:2336: warning: ignoring return value of 'sysfs_create_bin_file', declared with attribute warn_unused_result

Do minimal checking of these functions and issue a warning if either
fails.  They don't seem to be critical..

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/aty/radeon_base.c