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)
commitceb96fae397a2fafd631d97edb387707481e7c6b
tree8bc26a1afb150792fd90cf76f763f34dec0fa1f2
parent0697fecf7ecd8abf70d0f46e6a352818e984cc9f
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