From: Aleksander Jan Bajkowski Date: Fri, 2 Dec 2022 22:42:22 +0000 (+0100) Subject: kernel: i2c: limit i2c-designware-pci to devices with PCI support X-Git-Tag: v23.05.0-rc1~295 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1827b313f72aad1fe18d41a91f6596f186007880;p=openwrt%2Fopenwrt.git 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 --- 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