net: dsa: lan9303: drop of_match_ptr for ID table
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 11 Mar 2023 17:32:53 +0000 (18:32 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Mar 2023 08:11:01 +0000 (08:11 +0000)
commitced5c5a0a2ea5eec6ed6cf1fcdde719fdafed82c
treef14912b2b801b05d88bba98f8c57aa7020614c7d
parent6ea1e67788f30710d1991de42802cbdeb67afec4
net: dsa: lan9303: drop of_match_ptr for ID table

The driver will match mostly or only by DT table (even thought there is
regular ID table) so there is little benefit in of_match_ptr (this also
allows ACPI matching via PRP0001, even though it might not be relevant
here).

  drivers/net/dsa/lan9303_i2c.c:97:34: error: ‘lan9303_i2c_of_match’ defined but not used [-Werror=unused-const-variable=]
  drivers/net/dsa/lan9303_mdio.c:157:34: error: ‘lan9303_mdio_of_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/lan9303_i2c.c
drivers/net/dsa/lan9303_mdio.c