]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1aac896ff8f0193f053e23fa8a1cf647f5d6a9e0
treeacf9e2a4b8a154e12696cdee4d257d41d758e3ba
parentb75d435465be94dec9aa8f804f7de07ae7f87c54
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