diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2022-04-26 00:26:43 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-04-27 03:09:23 +0300 |
commit | dac173db114d1309dadf50465ca549231deaf59b (patch) | |
tree | ff8fc04ac85bf038de3e3752c21484a74bc7bd90 | |
parent | c706b2b5ed74d30436b85cbd8e63e969f6b5873a (diff) | |
download | linux-dac173db114d1309dadf50465ca549231deaf59b.tar.xz |
net: wan: atp: remove unused eeprom_delay()
atp.h is included only by atp.c, which does not use eeprom_delay(). Remove
the unused definition.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r-- | drivers/net/ethernet/realtek/atp.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/ethernet/realtek/atp.h b/drivers/net/ethernet/realtek/atp.h index 63f0d2d0e87b..b202184eddd4 100644 --- a/drivers/net/ethernet/realtek/atp.h +++ b/drivers/net/ethernet/realtek/atp.h @@ -255,10 +255,6 @@ static inline void write_word_mode0(short ioaddr, unsigned short value) #define EE_DATA_WRITE 0x01 /* EEPROM chip data in. */ #define EE_DATA_READ 0x08 /* EEPROM chip data out. */ -/* Delay between EEPROM clock transitions. */ -#define eeprom_delay(ticks) \ -do { int _i = 40; while (--_i > 0) { __SLOW_DOWN_IO; } } while (0) - /* The EEPROM commands include the alway-set leading bit. */ #define EE_WRITE_CMD(offset) (((5 << 6) + (offset)) << 17) #define EE_READ(offset) (((6 << 6) + (offset)) << 17) |