net: dsa: vsc73xx: Remove dependency on CONFIG_OF
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 2 Jan 2020 23:34:45 +0000 (15:34 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Jan 2020 22:23:48 +0000 (14:23 -0800)
commitaa1d54c65d11ab32e72f8122709e9dff4049ce93
treed43e6ae364a675825b8abf8800e9224bf09c932e
parent704a0afb4963a486f604fba1064f9025e2865fc9
net: dsa: vsc73xx: Remove dependency on CONFIG_OF

There is no build time dependency on CONFIG_OF, but we do need to make
sure we gate the initialization of the gpio_chip::of_node member with a
proper check on CONFIG_OF_GPIO. This enables the driver to build on
platforms that do not have CONFIG_OF enabled.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/Kconfig
drivers/net/dsa/vitesse-vsc73xx-core.c