[PATCH] fbdev: Honor the return value of device_create_file
authorAntonino A. Daplas <adaplas@gmail.com>
Tue, 3 Oct 2006 08:14:50 +0000 (01:14 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 3 Oct 2006 15:04:10 +0000 (08:04 -0700)
commit1a6600be3e5dafe2ddcc5d969d931c2591eed896
tree453d3d63fce8f1092f21546a4c00d350cfe04fdd
parent928e964f262b522dad57483108f62d87c52ccf82
[PATCH] fbdev: Honor the return value of device_create_file

Check the return value of device_create_file().  If return is 'fail', remove
attributes by calling device_remove_file().

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/fbsysfs.c
include/linux/fb.h