OSDN Git Service

via-rhine: Use of_device_get_match_data to simplify code
authorTang Bin <tangbin@cmss.chinamobile.com>
Mon, 23 Aug 2021 11:33:36 +0000 (19:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Aug 2021 11:56:15 +0000 (12:56 +0100)
commitb708a96d76462614123f4e8a8bb030889ab43ba4
treeacf9e2a4b8a154e12696cdee4d257d41d758e3ba
parent609c1308fbc6446fd6d8fec42b80e157768a5362
via-rhine: Use of_device_get_match_data to simplify code

Retrieve OF match data, it's better and cleaner to use
'of_device_get_match_data' over 'of_match_device'.

Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/via/via-rhine.c