init.insmod.*.cfg: Migrate from insmod to modprobe

modprobe is smarter about locating .ko files if they are stored in
subdirectories. For example, it finds heatmap.ko regardless of whether
it's stored in /vendor/lib/modules/heatmap.ko or
/vendor/lib/modules/extra/heatmap.ko.  modprobe also loads all
dependencies automatically.  Let's migrate from insmod to modprobe.

Bug: 185184472
Change-Id: I439fdc76fb6211b416541256c92169da12b0100d
This commit is contained in:
Daniel Mentz 2021-04-28 20:39:25 -07:00
parent 24333156a4
commit 296196c25b
4 changed files with 13 additions and 13 deletions

View file

@ -6,7 +6,7 @@
# Load device specific kernel modules
# Modules here will be loaded *after* all common modules
insmod|/vendor/lib/modules/bcmdhd4389.ko
modprobe|bcmdhd4389.ko
modprobe|ftm5.ko
modprobe|sec_touch.ko

View file

@ -6,7 +6,7 @@
# Load device specific kernel modules
# Modules here will be loaded *after* all common modules
insmod|/vendor/lib/modules/bcmdhd4389.ko
modprobe|bcmdhd4389.ko
modprobe|sec_touch.ko
# All device specific modules loaded

View file

@ -6,13 +6,13 @@
# Load device specific kernel modules
# Modules here will be loaded *after* all common modules
insmod|/vendor/lib/modules/bcmdhd43752.ko
insmod|/vendor/lib/modules/bcmdhd4389.ko
insmod|/vendor/lib/modules/snd-soc-cs35l41-spi.ko
insmod|/vendor/lib/modules/ftm5.ko
insmod|/vendor/lib/modules/haptics-cs40l2x.ko
insmod|/vendor/lib/modules/st33spi.ko
insmod|/vendor/lib/modules/st54spi.ko
modprobe|bcmdhd43752.ko
modprobe|bcmdhd4389.ko
modprobe|snd-soc-cs35l41-spi.ko
modprobe|ftm5.ko
modprobe|haptics-cs40l2x.ko
modprobe|st33spi.ko
modprobe|st54spi.ko
# Wait for any asynchronous work to complete
wait|/sys/class/leds/vibrator

View file

@ -6,10 +6,10 @@
# Load device specific kernel modules
# Modules here will be loaded *after* all common modules
insmod|/vendor/lib/modules/bcmdhd43752.ko
insmod|/vendor/lib/modules/snd-soc-cs35l41-i2c.ko
insmod|/vendor/lib/modules/drv2624.ko
insmod|/vendor/lib/modules/sec_touch.ko
modprobe|bcmdhd43752.ko
modprobe|snd-soc-cs35l41-i2c.ko
modprobe|drv2624.ko
modprobe|sec_touch.ko
# All device specific modules loaded
setprop|vendor.device.modules.ready