]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
net: txgbe: Fix I2C Kconfig dependencies
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Tue, 3 Sep 2024 14:25:05 +0000 (17:25 +0300)
committerAndi Shyti <andi.shyti@kernel.org>
Mon, 9 Sep 2024 22:36:54 +0000 (00:36 +0200)
The dependency handling of the Synopsys DesignWare I2C
adapter drivers is going to be changed so that the glue
drivers for the platform and PCI buses depend on
I2C_DESIGNWARE_CORE. Right now this driver prevents that
update because it selects I2C_DESIGNWARE_PLATFORM.

To make the dependency on I2C_DESIGNWARE_PLATFORM consistent
with the other drivers in kernel that depend on it, and
allow the dependency handling of the Synopsys DesignWare I2C
drivers to be updated, change the "select" into "depends on".

Cc: Jiawen Wu <jiawenwu@trustnetic.com>
Cc: Mengyuan Lou <mengyuanlou@net-swift.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Paolo Abeni <pabeni@redhat.com>
Cc: netdev@vger.kernel.org
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/net/ethernet/wangxun/Kconfig

index 85cdbdd44fec70d1b20e348c38368f047107eec6..e46ccebcfd22fdbf1756c727b5f19cc350425a07 100644 (file)
@@ -41,10 +41,9 @@ config TXGBE
        tristate "Wangxun(R) 10GbE PCI Express adapters support"
        depends on PCI
        depends on COMMON_CLK
+       depends on I2C_DESIGNWARE_PLATFORM
        select MARVELL_10G_PHY
        select REGMAP
-       select I2C
-       select I2C_DESIGNWARE_PLATFORM
        select PHYLINK
        select HWMON if TXGBE=y
        select SFP