drivers: net: davinci_mdio: Use of_device_get_match_data()
authorStephen Boyd <swboyd@chromium.org>
Sat, 23 Jan 2021 03:44:24 +0000 (19:44 -0800)
committerRob Herring <robh@kernel.org>
Tue, 26 Jan 2021 18:17:31 +0000 (12:17 -0600)
commit0e658fdd4b2d6fd8f3b83f27fd075b7b2a1d686d
tree04f65f498f599fd2b00fe0949834fc315dcf66a2
parenta38f3fbc30ec28527aa7dd98d3f4ed24708e7818
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 <swboyd@chromium.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Frank Rowand <frowand.list@gmail.com>
Cc: <linux-omap@vger.kernel.org>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210123034428.2841052-3-swboyd@chromium.org
drivers/net/ethernet/ti/davinci_mdio.c