diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-12-16 10:57:39 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-12-17 19:56:13 -0500 |
commit | 46eeb2c144956e88197439b5ee5cf221a91b0a81 (patch) | |
tree | f97380f79cd9ec37211109d05c50c2321ace6979 /include/linux/fb.h | |
parent | 73e9efd4bddbf42d2938a150ba680b73b6126b77 (diff) |
video/fb: Propagate error code from failing to unregister conflicting fb
If we fail to remove a conflicting fb driver, we need to abort the
loading of the second driver to avoid likely kernel panics.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: linux-fbdev@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/linux/fb.h')
-rw-r--r-- | include/linux/fb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/fb.h b/include/linux/fb.h index 70c4836e4a9f..fe6ac956550e 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h | |||
@@ -613,8 +613,8 @@ extern ssize_t fb_sys_write(struct fb_info *info, const char __user *buf, | |||
613 | extern int register_framebuffer(struct fb_info *fb_info); | 613 | extern int register_framebuffer(struct fb_info *fb_info); |
614 | extern int unregister_framebuffer(struct fb_info *fb_info); | 614 | extern int unregister_framebuffer(struct fb_info *fb_info); |
615 | extern int unlink_framebuffer(struct fb_info *fb_info); | 615 | extern int unlink_framebuffer(struct fb_info *fb_info); |
616 | extern void remove_conflicting_framebuffers(struct apertures_struct *a, | 616 | extern int remove_conflicting_framebuffers(struct apertures_struct *a, |
617 | const char *name, bool primary); | 617 | const char *name, bool primary); |
618 | extern int fb_prepare_logo(struct fb_info *fb_info, int rotate); | 618 | extern int fb_prepare_logo(struct fb_info *fb_info, int rotate); |
619 | extern int fb_show_logo(struct fb_info *fb_info, int rotate); | 619 | extern int fb_show_logo(struct fb_info *fb_info, int rotate); |
620 | extern char* fb_get_buffer_offset(struct fb_info *info, struct fb_pixmap *buf, u32 size); | 620 | extern char* fb_get_buffer_offset(struct fb_info *info, struct fb_pixmap *buf, u32 size); |