]> 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)
commit7445a3d420433517d3fdee2d8e5f3227765b03db
treec851cd92e048151957aa4e17f13f2cbfb6a0446a
parentd873dcc58556ee64d8c8df548267a6fe2a29fb14
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