net-next: mediatek: cleanup unnecessary get chip id and its user
authorSean Wang <sean.wang@mediatek.com>
Sat, 28 Jul 2018 05:35:56 +0000 (13:35 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Jul 2018 20:15:57 +0000 (13:15 -0700)
commit2d14ba7228b0c2e43e97bd37be8bcf3b71725fff
treec851cd92e048151957aa4e17f13f2cbfb6a0446a
parent6c21da204a90ceca73096bf1b91c4fdf43308c16
net-next: mediatek: cleanup unnecessary get chip id and its user

Since driver is devicetree-based, all device type and charateristic can be
determined by the compatible string and its data. It's unnecessary to
create another dependent function to check chip ID and then decide whether
the specific funciton is being supported on a certain device. It can be
totally replaced by the existing flag, so a cleanup is made by removing
the function and the only user, HWLRO.

MT2701 also have a missing HWLRO support in old code, so add it the same
patch.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/mediatek/mtk_eth_soc.h