From ae912505ac7bb3f9b6c6eab8cd3cefb79d3dadc4 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sun, 11 Nov 2012 18:40:43 +0000 Subject: [PATCH] i2c-gpio-mux: fix build for 3.6+ kernels Signed-off-by: Florian Fainelli SVN-Revision: 34152 --- package/kernel/modules/i2c.mk | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.25.1