Re: [PATCH net-next] net: dsa: vsc73xx: Remove dependency on CONFIG_OF

From: David Miller
Date: Sun Jan 05 2020 - 17:24:23 EST


From: Florian Fainelli <f.fainelli@xxxxxxxxx>
Date: Thu, 2 Jan 2020 15:34:45 -0800

> 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@xxxxxxxxx>

Applied, thanks.

Maybe if this becomes common enough we can have a helper like the
ones we have for network namespaces, something like of_node_set().