Re: [PATCH] net: mediatek: use of_device_get_match_data()

2018-04-16 Thread David Miller
From: Ryder Lee Date: Mon, 16 Apr 2018 10:33:41 +0800 > The usage of of_device_get_match_data() reduce the code size a bit. > > Also, the only way to call mtk_probe() is to match an entry in > of_mtk_match[], so match cannot be NULL. > > Signed-off-by: Ryder Lee Applied to net-next.

[PATCH] net: mediatek: use of_device_get_match_data()

2018-04-15 Thread Ryder Lee
The usage of of_device_get_match_data() reduce the code size a bit. Also, the only way to call mtk_probe() is to match an entry in of_mtk_match[], so match cannot be NULL. Signed-off-by: Ryder Lee --- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deleti