net: dsa: xrs700x: use of_match_ptr() on xrs700x_mdio_dt_ids
authorGeorge McCollister <george.mccollister@gmail.com>
Tue, 9 Feb 2021 21:12:56 +0000 (15:12 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2021 21:17:04 +0000 (13:17 -0800)
commitf8a7e0145d58f53647c43fd9dd913da190c6c253
tree23186600a2263f6c9b094ab81a86b88ffd4fe143
parent3e0103a35a46b5f3dc7e3fe0f09eb2fc5e0456e6
net: dsa: xrs700x: use of_match_ptr() on xrs700x_mdio_dt_ids

Use of_match_ptr() on xrs700x_mdio_dt_ids so that NULL is substituted
when CONFIG_OF isn't defined. This will prevent unnecessary use of
xrs700x_mdio_dt_ids when CONFIG_OF isn't defined.

Signed-off-by: George McCollister <george.mccollister@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/xrs700x/xrs700x_mdio.c