Commit 8d909440 authored by Marcin Wojtas's avatar Marcin Wojtas Committed by David S. Miller
Browse files

net: mvpp2: remove unused 'has_phy' field



The 'has_phy' field from struct mvpp2_port is no longer used.
Remove it.

Signed-off-by: default avatarMarcin Wojtas <mw@semihalf.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent dfce1bab
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1197,9 +1197,6 @@ struct mvpp2_port {
	/* Firmware node associated to the port */
	struct fwnode_handle *fwnode;

	/* Is a PHY always connected to the port */
	bool has_phy;

	/* Per-port registers' base address */
	void __iomem *base;
	void __iomem *stats_base;
+0 −1
Original line number Diff line number Diff line
@@ -6790,7 +6790,6 @@ static int mvpp2_port_probe(struct platform_device *pdev,
	port = netdev_priv(dev);
	port->dev = dev;
	port->fwnode = port_fwnode;
	port->has_phy = !!of_find_property(port_node, "phy", NULL);
	port->ntxqs = ntxqs;
	port->nrxqs = nrxqs;
	port->priv = priv;