OSDN Git Service

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)
commit3b5b005ef7d9e2ff1693c1d14a0f4459dcedb4e0
tree51c70bce6773b8642ec46c681d99f369a1199fdd
parent1a21e5b930e8454438ebb707f558b256e4b06ec7
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: fc1acf317b01 ("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