diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2020-03-30 00:03:02 +0100 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2020-03-30 00:03:02 +0100 |
commit | 14a00af217378aea834f2d7eb954568ace6bb00c (patch) | |
tree | 7b45d185b90c3f31bf22fa233fbca65790124f2c /hook-functions | |
parent | dd5fb3610b576c124ec6f22acc9494d44c06e6de (diff) |
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 <ben@decadent.org.uk>
Diffstat (limited to 'hook-functions')
-rw-r--r-- | hook-functions | 3 |
1 files changed, 2 insertions, 1 deletions
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 |