]> git.baikalelectronics.ru Git - kernel.git/commit
drm/of: Make drm_of_find_panel_or_bridge() fail when the device is disabled
authorBoris Brezillon <boris.brezillon@bootlin.com>
Wed, 9 May 2018 13:00:41 +0000 (15:00 +0200)
committerThierry Reding <treding@nvidia.com>
Tue, 10 Jul 2018 15:59:05 +0000 (17:59 +0200)
commit85715b62f2863d37d38b6230d5d733b118884df5
treed4485b45fbdf42bd02d9a7544318efc9ea145f1a
parent84c1e4f8a291eeb85c8c17e09d278fbb8eee85e4
drm/of: Make drm_of_find_panel_or_bridge() fail when the device is disabled

There's no point searching for a drm_bridge or drm_panel if the OF node
we're pointing has a status property that is not "okay" or "ok". Just
return -ENODEV in this case.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180509130042.9435-4-boris.brezillon@bootlin.com
drivers/gpu/drm/drm_of.c