OSDN Git Service

net: stmmac: Don't set has_gmac if has_gmac4 is set
authorEzequiel Garcia <ezequiel@collabora.com>
Mon, 17 May 2021 15:40:34 +0000 (12:40 -0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 May 2021 22:34:43 +0000 (15:34 -0700)
commitd6b0625163a8948341d12cac420402a31093b5ed
tree417acb74bc4e7e17ec311e20e3fc5e4d2014a715
parent5796254e467bf1cff002df65fbb53ecef6a0e060
net: stmmac: Don't set has_gmac if has_gmac4 is set

Some Rockchip platforms have a GMAC4 core, and therefore
'plat_stmmacenet_data.has_gmac' shouldn't be set if
'plat_stmmacenet_data.has_gmac4' is set.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c