9abf8c
From 561339d4d04c5481a3239017d714f035fc5bc55a Mon Sep 17 00:00:00 2001
9abf8c
From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?=
9abf8c
 <marmarek@invisiblethingslab.com>
9abf8c
Date: Tue, 3 Mar 2020 21:20:34 +0100
9abf8c
Subject: [PATCH] Consider also drm_dev_register when looking for gpu driver
9abf8c
9abf8c
DRM drivers are filtered for drm_crtc_init symbol,
9abf8c
but not all drivers use it. Especially, cirrus driver
9abf8c
doesn't use it since Linux 5.2.
9abf8c
9abf8c
The practical result is text plymouth theme instead of graphical when in qemu.
9abf8c
9abf8c
Fix it by looking also for drm_dev_register symbol.
9abf8c
Suggested by @haraldh
9abf8c
Fixes #712
9abf8c
9abf8c
(cherry picked from commit ebeed55c073eeaf78b738fe2c91bb6327a2c3bfe)
9abf8c
9abf8c
Resolves: #1874506
9abf8c
---
9abf8c
 modules.d/50drm/module-setup.sh | 2 +-
9abf8c
 1 file changed, 1 insertion(+), 1 deletion(-)
9abf8c
9abf8c
diff --git a/modules.d/50drm/module-setup.sh b/modules.d/50drm/module-setup.sh
9abf8c
index 23545e34..a1711c00 100755
9abf8c
--- a/modules.d/50drm/module-setup.sh
9abf8c
+++ b/modules.d/50drm/module-setup.sh
9abf8c
@@ -40,6 +40,6 @@ installkernel() {
9abf8c
             fi
9abf8c
         done
9abf8c
     else
9abf8c
-        dracut_instmods -o -s "drm_crtc_init" "=drivers/gpu/drm" "=drivers/staging"
9abf8c
+        dracut_instmods -o -s "drm_crtc_init|drm_dev_register" "=drivers/gpu/drm" "=drivers/staging"
9abf8c
     fi
9abf8c
 }
9abf8c