diff options
author | Stephen Boyd <stephen.boyd@linaro.org> | 2017-01-23 20:49:20 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-24 14:56:44 -0500 |
commit | 3ebe8344eb8a4214c09424bf8094025c8bf61823 (patch) | |
tree | 3593bfcd624f6326c622971e9cb796ca4ab793d1 | |
parent | bef4e179b0854062509576bc805445815a29db0c (diff) |
net: ks8851: Drop eeprom_size structure member
After commit 51b7b1c34e19 (KSZ8851-SNL: Add ethtool support for
EEPROM via eeprom_93cx6, 2011-11-21) this structure member is
unused. Delete it.
Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/micrel/ks8851.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/net/ethernet/micrel/ks8851.c b/drivers/net/ethernet/micrel/ks8851.c index e7e1aff40bd9..955d69a8e8d3 100644 --- a/drivers/net/ethernet/micrel/ks8851.c +++ b/drivers/net/ethernet/micrel/ks8851.c | |||
@@ -84,7 +84,6 @@ union ks8851_tx_hdr { | |||
84 | * @rc_ier: Cached copy of KS_IER. | 84 | * @rc_ier: Cached copy of KS_IER. |
85 | * @rc_ccr: Cached copy of KS_CCR. | 85 | * @rc_ccr: Cached copy of KS_CCR. |
86 | * @rc_rxqcr: Cached copy of KS_RXQCR. | 86 | * @rc_rxqcr: Cached copy of KS_RXQCR. |
87 | * @eeprom_size: Companion eeprom size in Bytes, 0 if no eeprom | ||
88 | * @eeprom: 93CX6 EEPROM state for accessing on-board EEPROM. | 87 | * @eeprom: 93CX6 EEPROM state for accessing on-board EEPROM. |
89 | * @vdd_reg: Optional regulator supplying the chip | 88 | * @vdd_reg: Optional regulator supplying the chip |
90 | * @vdd_io: Optional digital power supply for IO | 89 | * @vdd_io: Optional digital power supply for IO |
@@ -120,7 +119,6 @@ struct ks8851_net { | |||
120 | u16 rc_ier; | 119 | u16 rc_ier; |
121 | u16 rc_rxqcr; | 120 | u16 rc_rxqcr; |
122 | u16 rc_ccr; | 121 | u16 rc_ccr; |
123 | u16 eeprom_size; | ||
124 | 122 | ||
125 | struct mii_if_info mii; | 123 | struct mii_if_info mii; |
126 | struct ks8851_rxctrl rxctrl; | 124 | struct ks8851_rxctrl rxctrl; |
@@ -1533,11 +1531,6 @@ static int ks8851_probe(struct spi_device *spi) | |||
1533 | /* cache the contents of the CCR register for EEPROM, etc. */ | 1531 | /* cache the contents of the CCR register for EEPROM, etc. */ |
1534 | ks->rc_ccr = ks8851_rdreg16(ks, KS_CCR); | 1532 | ks->rc_ccr = ks8851_rdreg16(ks, KS_CCR); |
1535 | 1533 | ||
1536 | if (ks->rc_ccr & CCR_EEPROM) | ||
1537 | ks->eeprom_size = 128; | ||
1538 | else | ||
1539 | ks->eeprom_size = 0; | ||
1540 | |||
1541 | ks8851_read_selftest(ks); | 1534 | ks8851_read_selftest(ks); |
1542 | ks8851_init_mac(ks); | 1535 | ks8851_init_mac(ks); |
1543 | 1536 | ||