Skip to content

Commit cb42d4b

Browse files
manabiandavem330
authored andcommitted
stmmac: dwmac-sti: remove unused priv dev member
The dev member of struct sti_dwmac is not used anywhere in the driver so lets just remove it. Signed-off-by: Joachim Eastwood <[email protected]> Acked-by: Giuseppe Cavallaro <[email protected]> Tested-by: Giuseppe Cavallaro <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 0eebedc commit cb42d4b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ struct sti_dwmac {
126126
struct clk *clk; /* PHY clock */
127127
u32 ctrl_reg; /* GMAC glue-logic control register */
128128
int clk_sel_reg; /* GMAC ext clk selection register */
129-
struct device *dev;
130129
struct regmap *regmap;
131130
bool gmac_en;
132131
u32 speed;
@@ -274,7 +273,6 @@ static int sti_dwmac_parse_data(struct sti_dwmac *dwmac,
274273
return err;
275274
}
276275

277-
dwmac->dev = dev;
278276
dwmac->interface = of_get_phy_mode(np);
279277
dwmac->regmap = regmap;
280278
dwmac->gmac_en = of_property_read_bool(np, "st,gmac_en");

0 commit comments

Comments
 (0)