summaryrefslogtreecommitdiffstats
path: root/include/linux/fb.h
diff options
context:
space:
mode:
authorAntonino A. Daplas2006-10-03 10:14:50 +0200
committerLinus Torvalds2006-10-03 17:04:10 +0200
commit1a6600be3e5dafe2ddcc5d969d931c2591eed896 (patch)
tree453d3d63fce8f1092f21546a4c00d350cfe04fdd /include/linux/fb.h
parent[PATCH] vt: Honor the return value of device_create_file (diff)
downloadkernel-qcow2-linux-1a6600be3e5dafe2ddcc5d969d931c2591eed896.tar.gz
kernel-qcow2-linux-1a6600be3e5dafe2ddcc5d969d931c2591eed896.tar.xz
kernel-qcow2-linux-1a6600be3e5dafe2ddcc5d969d931c2591eed896.zip
[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>
Diffstat (limited to 'include/linux/fb.h')
-rw-r--r--include/linux/fb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fb.h b/include/linux/fb.h
index 37aab314f0c4..3e69241e6a81 100644
--- a/include/linux/fb.h
+++ b/include/linux/fb.h
@@ -776,6 +776,7 @@ struct fb_info {
struct fb_ops *fbops;
struct device *device;
struct class_device *class_device; /* sysfs per device attrs */
+ int class_flag; /* private sysfs flags */
#ifdef CONFIG_FB_TILEBLITTING
struct fb_tile_ops *tileops; /* Tile Blitting */
#endif