net: mvpp2: remove unused 'has_phy' field
authorMarcin Wojtas <mw@semihalf.com>
Mon, 21 Jun 2021 17:30:28 +0000 (19:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Jun 2021 16:54:55 +0000 (09:54 -0700)
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>
drivers/net/ethernet/marvell/mvpp2/mvpp2.h
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c

index 4a61c90003b5ead489bc5147fc068c3d12976b3c..b9fbc9f000f2fd53ba6c42b01293ba272323adc8 100644 (file)
@@ -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;
index a66ed31940153d2d6d5f8dc40e4eb040d08d2924..8362e64a3b2846d559423e4a798c7c9cf0bdaee6 100644 (file)
@@ -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;