net: mvpp2: always compare hw-version vs MVPP21
authorStefan Chulski <stefanc@marvell.com>
Thu, 11 Feb 2021 10:48:51 +0000 (12:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2021 22:50:23 +0000 (14:50 -0800)
commit60dcd6b7d96e63221f41b3c68b19dd8c88eeda75
treecdc9e4a8ecec91df0cb84a84339f971df14323d4
parente54ad1e01c00d35dcae8eff7954221fc8c700888
net: mvpp2: always compare hw-version vs MVPP21

Currently we have PP2v1 and PP2v2 hw-versions, with some different
handlers depending upon condition hw_version = MVPP21/MVPP22.
In a future there will be also PP2v3. Let's use now the generic
"if equal/notEqual MVPP21" for all cases instead of "if MVPP22".

This patch does not change any functionality.
It is not intended to introduce PP2v3.
It just modifies MVPP21/MVPP22 check-condition
bringing it to generic and unified form correct for new-code
introducing and PP2v3 net-next generation.

Signed-off-by: Stefan Chulski <stefanc@marvell.com>
Acked-by: Marcin Wojtas <mw@semihalf.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c