BACKPORT: drm: allow FB's in drm_mode_object_find

We do actually want to permit FB's in atomic case, since FB will be
looked up like any other object property value in a few code paths
(like property value validation).

So split out into an internal function without the WARN_ON() which
we can use in those special cases.

Signed-off-by: Rob Clark <robdclark@gmail.com>
(cherry picked from commit 1358cd58fc90e673397511988954c1c55e606412)
Signed-off-by: David Sodman <dsodman@chromium.org>

Conflicts:
	drivers/gpu/drm/drm_crtc.c

Change-Id: Ic507991801c921c33bed441935d7d11ec71c8504
Reviewed-on: https://chromium-review.googlesource.com/218974
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Commit-Queue: David Sodman <dsodman@chromium.org>
Tested-by: David Sodman <dsodman@chromium.org>
1 file changed