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:
parent
24333156a4
commit
296196c25b
4 changed files with 13 additions and 13 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue