net: mvpp2: remove unused 'has_phy' field
The 'has_phy' field from struct mvpp2_port is no longer used. Remove it. Signed-off-by: Marcin Wojtas <mw@semihalf.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
dfce1bab8f
Коммит
8d909440ab
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче