diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-10-24 13:04:57 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2012-10-24 13:04:57 +0000 |
commit | 58ab3ed1f825da2647ceaa1fb514568b75a3271d (patch) | |
tree | 1d570839118047a828b019c2729761010b0eb545 /package/kernel/modules/i2c.mk | |
parent | d059b26520fd58b55afd669a799f323620a96df6 (diff) | |
download | upstream-58ab3ed1f825da2647ceaa1fb514568b75a3271d.tar.gz upstream-58ab3ed1f825da2647ceaa1fb514568b75a3271d.tar.bz2 upstream-58ab3ed1f825da2647ceaa1fb514568b75a3271d.zip |
[package] i2c muxes modules have a different prefix since 3.5
Kernel 3.5 started prefixing i2c muxes modules with i2c-mux-, account for that
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33904 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/modules/i2c.mk')
-rw-r--r-- | package/kernel/modules/i2c.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/package/kernel/modules/i2c.mk b/package/kernel/modules/i2c.mk index d0ebfccfc7..6c65989683 100644 --- a/package/kernel/modules/i2c.mk +++ b/package/kernel/modules/i2c.mk @@ -212,8 +212,12 @@ endef $(eval $(call KernelPackage,i2c-mux-gpio)) +ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.6.0)),1) +I2C_MUX_PREFIX:=i2c-mux- +endif + I2C_MUX_PCA954x_MODULES:= \ - CONFIG_I2C_MUX_PCA954x:drivers/i2c/muxes/pca954x + CONFIG_I2C_MUX_PCA954x:drivers/i2c/muxes/$(I2C_MUX_PREFIX)pca954x define KernelPackage/i2c-mux-pca954x $(call i2c_defaults,$(I2C_MUX_PCA954x_MODULES),51) @@ -229,7 +233,7 @@ $(eval $(call KernelPackage,i2c-mux-pca954x)) ## Support for pca954x seems to be in kernel since 2.6.36 I2C_MUX_PCA9541_MODULES:= \ - CONFIG_I2C_MUX_PCA9541:drivers/i2c/muxes/pca9541 + CONFIG_I2C_MUX_PCA9541:drivers/i2c/muxes/$(I2C_MUX_PREFIX)pca9541 define KernelPackage/i2c-mux-pca9541 $(call i2c_defaults,$(I2C_MUX_PCA9541_MODULES),51) |