summaryrefslogtreecommitdiff
path: root/package/kernel/modules/i2c.mk
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-08-16 12:39:47 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-08-16 12:39:47 +0000
commitc0d4cb1f242939db2548c791b9b424f759532447 (patch)
tree7ce654a125f6181abdfdf782d39b6c680ee43dac /package/kernel/modules/i2c.mk
parent2466ba038e473004652995b8b99bf7b6d032b2b6 (diff)
downloadmtk-20170518-c0d4cb1f242939db2548c791b9b424f759532447.zip
mtk-20170518-c0d4cb1f242939db2548c791b9b424f759532447.tar.gz
mtk-20170518-c0d4cb1f242939db2548c791b9b424f759532447.tar.bz2
Fix broken i2c module loading in R17269
Strip .ko suffix from module name. Fix typo in name of i2c-scx200-acb module to be loaded. Steve Signed-off-by: Steve Brown <sbrown@cortland.com> SVN-Revision: 17288
Diffstat (limited to 'package/kernel/modules/i2c.mk')
-rw-r--r--package/kernel/modules/i2c.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/kernel/modules/i2c.mk b/package/kernel/modules/i2c.mk
index 78c364d..ed626fc 100644
--- a/package/kernel/modules/i2c.mk
+++ b/package/kernel/modules/i2c.mk
@@ -11,7 +11,7 @@ ModuleConfVar=$(word 1,$(subst :,$(space),$(1)))
ModuleFullPath=$(if $(findstring y,$($(call ModuleConfVar,$(1)))),,$(LINUX_DIR)/$(word 2,$(subst :,$(space),$(1))).$(LINUX_KMOD_SUFFIX))
ModuleKconfig=$(foreach mod,$(1),$(call ModuleConfVar,$(mod)))
ModuleFiles=$(foreach mod,$(1),$(call ModuleFullPath,$(mod)))
-ModuleAuto=$(call AutoLoad,$(1),$(foreach mod,$(2),$(notdir $(call ModuleFullPath,$(mod)))),$(3))
+ModuleAuto=$(call AutoLoad,$(1),$(foreach mod,$(2),$(basename $(notdir $(call ModuleFullPath,$(mod))))),$(3))
define i2c_defaults
SUBMENU:=$(I2C_MENU)
@@ -121,7 +121,7 @@ $(eval $(call KernelPackage,i2c-scx200))
I2C_SCX200_ACB_MODULES:=\
- CONFIG_SCx200_ACB:drivers/i2c/busses/scx200_i2c
+ CONFIG_SCx200_ACB:drivers/i2c/busses/scx200_acb
define KernelPackage/i2c-scx200-acb
$(call i2c_defaults,$(I2C_SCX200_ACB_MODULES),59)