drm/fb-helper: Handle function NULL argument
authorNoralf Trønnes <noralf@tronnes.org>
Mon, 30 Oct 2017 15:39:37 +0000 (16:39 +0100)
committerNoralf Trønnes <noralf@tronnes.org>
Tue, 31 Oct 2017 18:05:23 +0000 (19:05 +0100)
commitc777990fb45b574b967d982986dd2dea8bb85643
tree531673d0a4bc745bf4178641f10e0b50a59eb939
parent37569925f4a71d45a90892418b18c1faea0ecf6b
drm/fb-helper: Handle function NULL argument

Make functions tolerate that the drm_fb_helper argument is NULL.
This is useful for drivers that continue probing when fbdev emulation
fails and not having to do this check themselves.
Update docs for functions that already handles this.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20171030153951.56269-2-noralf@tronnes.org
drivers/gpu/drm/drm_fb_helper.c