]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ingenic: Fix driver not probing when IPU port is missing
authorPaul Cercueil <paul@crapouillou.net>
Thu, 27 Aug 2020 11:44:04 +0000 (13:44 +0200)
committerPaul Cercueil <paul@crapouillou.net>
Sun, 30 Aug 2020 22:52:40 +0000 (00:52 +0200)
commitb1232210fba76b30b741ca0714e00ab1f9577b67
tree51c70bce6773b8642ec46c681d99f369a1199fdd
parenta1ebcbece87643af89f817453be3bca987f42a40
drm/ingenic: Fix driver not probing when IPU port is missing

Even if support for the IPU was compiled in, we may run on a device
(e.g. the Qi LB60) where the IPU is not available, or simply with an old
devicetree without the IPU node. In that case the ingenic-drm refused to
probe.

Fix the driver so that it will probe even if the IPU node is not present
in devicetree (but then IPU support is disabled of course).

v2: Take a different approach

Fixes: 40d293766caa ("drm/ingenic: Add support for the IPU")
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200827114404.36748-2-paul@crapouillou.net
drivers/gpu/drm/ingenic/ingenic-drm-drv.c