Merge branch 'dep-add-panels-properly' into 'master'

hook-functions: dep_add_modules: Properly include panel drivers

See merge request kernel-team/initramfs-tools!86
This commit is contained in:
Ben Hutchings 2024-05-18 15:49:24 +00:00
commit bbe22ecd58

View File

@ -600,9 +600,13 @@ dep_add_modules()
modules="$modules sunvnet sunvdc"
fi
if [ -e /sys/devices/platform/edp-panel ]; then
sys_walk_mod_add /sys/devices/platform/edp-panel
fi
for device in /sys/bus/platform/drivers/panel-edp/* \
/sys/bus/platform/drivers/panel-simple/* \
/sys/bus/dp-aux/drivers/panel-simple-dp-aux/*; do
if [ -d "$device" ] && [ "$(basename "$device")" != "module" ]; then
sys_walk_mod_add "$device"
fi
done
# shellcheck disable=SC2086
manual_add_modules $modules