Skip to contentSkip to conversation

sfc: Remove unnecessary dependencies on I2C

PATCH Applied Ben Hutchings 3 participants 3 messages Dec 31, 2019 – Jan 3, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sfc: Remove unnecessary dependencies on I2C

Only the SFC4000 code, now moved to sfc-falcon, needed I2C.

---
 drivers/net/ethernet/sfc/Kconfig      | 2 --
 drivers/net/ethernet/sfc/net_driver.h | 1 -
 drivers/net/ethernet/sfc/nic.h        | 1 -
 3 files changed, 4 deletions(-)
drivers/net/ethernet/sfc/Kconfig +0 -2
index 5f36774bf4b8..ea5a9220196c 100644
@@ -21,8 +21,6 @@ config SFC
 	depends on PCI
 	select MDIO
 	select CRC32
-	select I2C
-	select I2C_ALGOBIT
 	imply PTP_1588_CLOCK
 	---help---
 	  This driver supports 10/40-gigabit Ethernet cards based on
drivers/net/ethernet/sfc/net_driver.h +0 -1
index dfd5182d9e47..709172a6995e 100644
@@ -24,7 +24,6 @@
 #include <linux/mutex.h>
 #include <linux/rwsem.h>
 #include <linux/vmalloc.h>
-#include <linux/i2c.h>
 #include <linux/mtd/mtd.h>
 #include <net/busy_poll.h>
 #include <net/xdp.h>
drivers/net/ethernet/sfc/nic.h +0 -1
index 1f7c5717de75..bf0bdb22cc64 100644
@@ -9,7 +9,6 @@
 #define EFX_NIC_H
 
 #include <linux/net_tstamp.h>
-#include <linux/i2c-algo-bit.h>
 #include "net_driver.h"
 #include "efx.h"
 #include "mcdi.h"