]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdb55ce2b497bcfabde62d0a68ccab800f39d1d31
treed43e6ae364a675825b8abf8800e9224bf09c932e
parentb180775aa6465e7e38282f8b9d5c3272e55bbb6b
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