]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit53fae43d6eaae06fd619a2496c8b73bf240c89a0
treec851cd92e048151957aa4e17f13f2cbfb6a0446a
parentbd404e39de6dce326aca487e520eabb84b2735ec
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