[openwrt/openwrt] kernel: i2c: limit i2c-designware-pci to devices with PCI support

LEDE Commits lede-commits at lists.infradead.org
Tue May 9 02:41:58 PDT 2023


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/1827b313f72aad1fe18d41a91f6596f186007880

commit 1827b313f72aad1fe18d41a91f6596f186007880
Author: Aleksander Jan Bajkowski <olek2 at wp.pl>
AuthorDate: Fri Dec 2 23:42:22 2022 +0100

    kernel: i2c: limit i2c-designware-pci to devices with PCI support
    
    Kmod-i2c-designware-pci supports Synopsys I2C over PCIe bus. On targets
    without PCI support, this package is empty. Symbol CONFIG_I2C_DESIGNWARE_PCI
    depends on CONFIG_PCI.
    
    Signed-off-by: Aleksander Jan Bajkowski <olek2 at wp.pl>
---
 package/kernel/linux/modules/i2c.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/kernel/linux/modules/i2c.mk b/package/kernel/linux/modules/i2c.mk
index 15fd1ccddc..6b3cf98345 100644
--- a/package/kernel/linux/modules/i2c.mk
+++ b/package/kernel/linux/modules/i2c.mk
@@ -103,7 +103,7 @@ I2C_DWPCI_MODULES:= \
 define KernelPackage/i2c-designware-pci
   $(call i2c_defaults,$(I2C_DWPCI_MODULES),59)
   TITLE:=Synopsys DesignWare PCI
-  DEPENDS:=+kmod-i2c-designware-core
+  DEPENDS:=@PCI_SUPPORT +kmod-i2c-designware-core
 endef
 
 define KernelPackage/i2c-designware-pci/description




More information about the lede-commits mailing list