kernel: i2c: limit i2c-designware-pci to devices with PCI support
authorAleksander Jan Bajkowski <olek2@wp.pl>
Fri, 2 Dec 2022 22:42:22 +0000 (23:42 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 9 May 2023 09:40:59 +0000 (11:40 +0200)
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@wp.pl>
package/kernel/linux/modules/i2c.mk

index 15fd1ccddc423c07e1c71ced8b61cb2c05b6c940..6b3cf98345cb0c0af81dc05aba1e41e50659f3f1 100644 (file)
@@ -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