From 14a00af217378aea834f2d7eb954568ace6bb00c Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Mon, 30 Mar 2020 00:03:02 +0100 Subject: hook-functions: Don't add backlight modules if we have generic fb device If we have a generic framebuffer device then there should be no need to set up any backlight in early boot. Also, backlight devices are sometimes handled by large drm drivers like i915 which we don't want to include by default. Fixes: da8519036860 ("hook-functions: Include modules for Chromebook ...") Signed-off-by: Ben Hutchings --- hook-functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hook-functions') diff --git a/hook-functions b/hook-functions index affe3a4..97a3407 100644 --- a/hook-functions +++ b/hook-functions @@ -466,7 +466,7 @@ dep_add_modules() fi # sys walk some important device classes - for class in backlight extcon gpio phy pwm regulator rtc; do + for class in extcon gpio phy pwm regulator rtc; do class_add_modules "$class" done @@ -501,6 +501,7 @@ dep_add_modules() done if [ "$walk_graphics" = "yes" ]; then + class_add_modules backlight class_add_modules graphics fi -- cgit v1.2.3