diff options
Diffstat (limited to 'include/linux/fb.h')
-rw-r--r-- | include/linux/fb.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/include/linux/fb.h b/include/linux/fb.h index fe7d0d7907ab..f563c5013932 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h | |||
@@ -961,15 +961,7 @@ extern struct fb_info *registered_fb[FB_MAX]; | |||
961 | extern int num_registered_fb; | 961 | extern int num_registered_fb; |
962 | extern struct class *fb_class; | 962 | extern struct class *fb_class; |
963 | 963 | ||
964 | static inline int lock_fb_info(struct fb_info *info) | 964 | extern int lock_fb_info(struct fb_info *info); |
965 | { | ||
966 | mutex_lock(&info->lock); | ||
967 | if (!info->fbops) { | ||
968 | mutex_unlock(&info->lock); | ||
969 | return 0; | ||
970 | } | ||
971 | return 1; | ||
972 | } | ||
973 | 965 | ||
974 | static inline void unlock_fb_info(struct fb_info *info) | 966 | static inline void unlock_fb_info(struct fb_info *info) |
975 | { | 967 | { |