]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Fix W=1 warning with !CONFIG_OF
authorAndrew Lunn <andrew@lunn.ch>
Tue, 1 Sep 2020 02:32:57 +0000 (04:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Sep 2020 22:33:57 +0000 (15:33 -0700)
commitb9ff239442416e2a0d0070cf5d4f93e29d957144
tree8bc26a1afb150792fd90cf76f763f34dec0fa1f2
parent056a1540fa697b10869ffb7eb65d61dab575771a
net: dsa: mv88e6xxx: Fix W=1 warning with !CONFIG_OF

When building on platforms without device tree, e.g. amd64, W=1 gives
a warning about mv88e6xxx_mdio_external_match being unused. Replace
of_match_node() with of_device_is_compatible() to prevent this
warning.

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c