summaryrefslogtreecommitdiff
path: root/drivers/net/mscc_eswitch
diff options
context:
space:
mode:
authorHoratiu Vultur <horatiu.vultur@microchip.com>2019-01-31 17:30:37 +0300
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2019-02-01 16:13:36 +0300
commit0b8f34dc8cd6a678b26d80152f7bb324bcc15920 (patch)
tree1891df51b506e2e68aaace38ca3ab2d656956216 /drivers/net/mscc_eswitch
parent45f2748c50c676db2374c7d0a526b70db5ed86f7 (diff)
downloadu-boot-0b8f34dc8cd6a678b26d80152f7bb324bcc15920.tar.xz
net: mscc: Remove unused variables
Remove unused variables in the struct ocelot_private and make miim variable static. Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Diffstat (limited to 'drivers/net/mscc_eswitch')
-rw-r--r--drivers/net/mscc_eswitch/ocelot_switch.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/net/mscc_eswitch/ocelot_switch.c b/drivers/net/mscc_eswitch/ocelot_switch.c
index 40152e60d8..bf08c35ba0 100644
--- a/drivers/net/mscc_eswitch/ocelot_switch.c
+++ b/drivers/net/mscc_eswitch/ocelot_switch.c
@@ -123,19 +123,7 @@ enum ocelot_phy_id {
struct ocelot_private {
void __iomem *regs[TARGET_MAX];
-
struct mii_dev *bus[NUM_PHY];
- struct phy_device *phydev;
- int phy_mode;
- int max_speed;
-
- int rx_pos;
- int rx_siz;
- int rx_off;
- int tx_num;
-
- u8 tx_adj_packetbuf[PKTSIZE_ALIGN + PKTALIGN];
- void *tx_adj_buf;
};
static const unsigned long ocelot_regs_qs[] = {
@@ -152,7 +140,7 @@ static const unsigned long ocelot_regs_ana_table[] = {
[MSCC_ANA_TABLES_MACACCESS] = 0x8b3c,
};
-struct mscc_miim_dev miim[NUM_PHY];
+static struct mscc_miim_dev miim[NUM_PHY];
static int mscc_miim_reset(struct mii_dev *bus)
{