kernel: eliminate a few kernel_patchver_*/CompareKernelPatchVer calls

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44114
This commit is contained in:
Felix Fietkau
2015-01-24 22:13:31 +00:00
parent 47e651e2eb
commit b8303e0337
3 changed files with 9 additions and 8 deletions

View File

@@ -338,7 +338,7 @@ define KernelPackage/usb-ohci
CONFIG_USB_OHCI_HCD_OMAP3=y \
CONFIG_USB_OHCI_HCD_PLATFORM=y
FILES:=$(LINUX_DIR)/drivers/usb/host/ohci-hcd.ko
ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.11.0)),1)
ifeq ($(CONFIG_LINUX_3_8)$(CONFIG_LINUX_3_10),)
FILES+=$(LINUX_DIR)/drivers/usb/host/ohci-platform.ko
endif
AUTOLOAD:=$(call AutoLoad,50,ohci-hcd ohci-platform,1)