diff options
author | Stephen Boyd <[email protected]> | 2021-01-22 19:44:24 -0800 |
---|---|---|
committer | Rob Herring <[email protected]> | 2021-01-26 12:17:31 -0600 |
commit | 0e658fdd4b2d6fd8f3b83f27fd075b7b2a1d686d (patch) | |
tree | 04f65f498f599fd2b00fe0949834fc315dcf66a2 /net/switchdev/switchdev.c | |
parent | a38f3fbc30ec28527aa7dd98d3f4ed24708e7818 (diff) |
drivers: net: davinci_mdio: Use of_device_get_match_data()
Use the more modern API to get the match data out of the of match table.
This saves some code, lines, and nicely avoids referencing the match
table when it is undefined with configurations where CONFIG_OF=n.
Signed-off-by: Stephen Boyd <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Grygorii Strashko <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Frank Rowand <[email protected]>
Cc: <[email protected]>
Reviewed-by: Grygorii Strashko <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions