]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit414d0b7e1167c3d429b0e43d60b1c51ad7f804cb
tree453d3d63fce8f1092f21546a4c00d350cfe04fdd
parentbf51c01eedc3818658477b6c4ea5b52ee150e85e
[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