via-velocity: Use of_device_get_match_data to simplify code
authorTang Bin <tangbin@cmss.chinamobile.com>
Mon, 23 Aug 2021 11:33:37 +0000 (19:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Aug 2021 11:56:15 +0000 (12:56 +0100)
commitf6a4e0e8a00ff6fadb29f3646ccd33cc85195a38
tree9390d3b38d409df60e1b42b5090e8c26a5bda066
parentb708a96d76462614123f4e8a8bb030889ab43ba4
via-velocity: 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-velocity.c