diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-11-11 18:40:43 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2012-11-11 18:40:43 +0000 |
commit | cf559d02838d17d0a4f8228b676827b143cc3ef8 (patch) | |
tree | c487e6f44267f3eefec8fe2debdeef828556e5d1 | |
parent | c5f6531ab2959acf193ec50342528fefac9af5b7 (diff) | |
download | master-187ad058-cf559d02838d17d0a4f8228b676827b143cc3ef8.tar.gz master-187ad058-cf559d02838d17d0a4f8228b676827b143cc3ef8.tar.bz2 master-187ad058-cf559d02838d17d0a4f8228b676827b143cc3ef8.zip |
[package] i2c-gpio-mux: fix build for 3.6+ kernels
Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34152 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/kernel/modules/i2c.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/package/kernel/modules/i2c.mk b/package/kernel/modules/i2c.mk index 6c65989683..49d8250777 100644 --- a/package/kernel/modules/i2c.mk +++ b/package/kernel/modules/i2c.mk @@ -197,8 +197,13 @@ endef $(eval $(call KernelPackage,i2c-mux)) +ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.6.0)),1) +I2C_MUX_GPIO_MODULES:= \ + CONFIG_I2C_MUX_GPIO:drivers/i2c/muxes/i2c-mux-gpio +else I2C_MUX_GPIO_MODULES:= \ CONFIG_I2C_MUX_GPIO:drivers/i2c/muxes/gpio-i2cmux +endif define KernelPackage/i2c-mux-gpio $(call i2c_defaults,$(I2C_MUX_GPIO_MODULES),51) |