aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorDaniel Dickinson <daniel@cshore.neomailbox.net>2011-10-03 03:04:11 +0000
committerDaniel Dickinson <daniel@cshore.neomailbox.net>2011-10-03 03:04:11 +0000
commit4b81c00390fb2e9c3a344e97cbe855b862f30ded (patch)
tree186cf3acf2dd3fae841a4268f0e2480c9042a65b /package
parentdad79079ab9c0df5ecb7f15bde4246f6e69e372e (diff)
downloadupstream-4b81c00390fb2e9c3a344e97cbe855b862f30ded.tar.gz
upstream-4b81c00390fb2e9c3a344e97cbe855b862f30ded.tar.bz2
upstream-4b81c00390fb2e9c3a344e97cbe855b862f30ded.zip
The name gpio-cs5535 used to refer to the drivers/char/ module, but in 3.1 it refers to what had been drivers/gpio/cs5535-gpio in more recent kernels.
Philip Prindeville - 2011-08-29 04:55:59 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28354 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/kernel/modules/other.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/kernel/modules/other.mk b/package/kernel/modules/other.mk
index 1e252e3746..91fc17c38d 100644
--- a/package/kernel/modules/other.mk
+++ b/package/kernel/modules/other.mk
@@ -160,8 +160,13 @@ define KernelPackage/gpio-cs5535-new
TITLE:=AMD CS5535/CS5536 GPIO driver with improved sysfs support
DEPENDS:=@TARGET_x86 +kmod-cs5535-mfd @!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32)
KCONFIG:=CONFIG_GPIO_CS5535
+ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.1.0)),1)
+ FILES:=$(LINUX_DIR)/drivers/gpio/gpio-cs5535.ko
+ AUTOLOAD:=$(call AutoLoad,50,gpio-cs5535)
+else
FILES:=$(LINUX_DIR)/drivers/gpio/cs5535-gpio.ko
AUTOLOAD:=$(call AutoLoad,50,cs5535-gpio)
+endif
endef
define KernelPackage/gpio-cs5535-new/description