drm/fb_helper: Create a wrapper for unlink_framebuffer
authorArchit Taneja <architt@codeaurora.org>
Wed, 22 Jul 2015 09:27:57 +0000 (14:57 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 6 Aug 2015 12:12:54 +0000 (14:12 +0200)
commit47074ab7951c1fcfc3ff637eb8401c3a71272057
tree55bc4a3db5d5d0ba821e3b838771afd257bf967e
parentb8017d6c33be9862505a9154e302c4b00cbfca43
drm/fb_helper: Create a wrapper for unlink_framebuffer

Some drm drivers call unlink_framebuffer. Create a drm_fb_helper function
that wraps around these calls.

This is part of an effort to prevent drm drivers from calling fbdev
functions directly, in order to make fbdev emulation a top level drm
option.

v2:
- Added kerneldocs
- Added a check for non-NULL fb_helper before proceeding. This will
  make the helpers work when we have a module param for fbdev emulation

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_fb_helper.c
include/drm/drm_fb_helper.h