The port_cnt assignment will be done again in the init function.
This patch removes the previous assignment in the detect function.
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
 
        dev->mib_port_cnt = TOTAL_PORT_NUM;
        dev->phy_port_cnt = SWITCH_PORT_NUM;
-       dev->port_cnt = SWITCH_PORT_NUM;
 
        if (id2 == CHIP_ID_95) {
                u8 val;
                if (val & PORT_FIBER_MODE)
                        id2 = 0x65;
        } else if (id2 == CHIP_ID_94) {
-               dev->port_cnt--;
                id2 = 0x94;
        }
        id16 &= ~0xff;