summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-02-16 15:12:54 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-02-16 15:12:54 +0000
commit12d12c26a0f720868724dd10381c168b89ac6c5b (patch)
tree30bd81aff690902c9e5ce5785d003ce5c33d595a
parentdb4a8bc7c1382ee6f3829ba3a11fa1d0541b0575 (diff)
kernel: add a missing module for ahci on 2.6.35+
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25553 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/kernel/modules/block.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/package/kernel/modules/block.mk b/package/kernel/modules/block.mk
index a7fbe5291..21af7e524 100644
--- a/package/kernel/modules/block.mk
+++ b/package/kernel/modules/block.mk
@@ -44,7 +44,12 @@ define KernelPackage/ata-ahci
TITLE:=AHCI Serial ATA support
KCONFIG:=CONFIG_SATA_AHCI
FILES:=$(LINUX_DIR)/drivers/ata/ahci.ko
- AUTOLOAD:=$(call AutoLoad,41,ahci,1)
+ ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.35)),1)
+ FILES += $(LINUX_DIR)/drivers/ata/libahci.ko
+ AUTOLOAD:=$(call AutoLoad,41,libahci ahci,1)
+ else
+ AUTOLOAD:=$(call AutoLoad,41,ahci,1)
+ endif
$(call AddDepends/ata)
endef