diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-04-08 08:52:02 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-09 18:28:54 -0700 |
commit | eb976a55c744befe8ea8f6a6132d752d2b12cb98 (patch) | |
tree | fe966ff14bace94a08cb5c0334f0f901c71aea2d /drivers/net/ethernet/faraday | |
parent | 3c60a531b9e175693a2d61f6bfd7ffacce4146cd (diff) | |
download | linux-eb976a55c744befe8ea8f6a6132d752d2b12cb98.tar.bz2 |
net: dsa: mt7530: Include gpio/consumer.h for GPIO functions
Fixes build errors seen with CONFIG_GPIOLIB disabled and warnings enabled:
drivers/net/dsa/mt7530.c: In function 'mt7530_setup':
drivers/net/dsa/mt7530.c:948:3: error: implicit declaration of function 'gpiod_set_value_cansleep' [-Werror=implicit-function-declaration]
gpiod_set_value_cansleep(priv->reset, 0);
^~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/mt7530.c: In function 'mt7530_probe':
drivers/net/dsa/mt7530.c:1068:17: error: implicit declaration of function 'devm_gpiod_get_optional' [-Werror=implicit-function-declaration]
priv->reset = devm_gpiod_get_optional(&mdiodev->dev, "reset",
^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/mt7530.c:1069:13: error: 'GPIOD_OUT_LOW' undeclared (first use in this function)
GPIOD_OUT_LOW);
^~~~~~~~~~~~~
drivers/net/dsa/mt7530.c:1069:13:
Fixes: b8f126a8d543 ("net-next: dsa: add dsa support for Mediatek MT7530 switch")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/faraday')
0 files changed, 0 insertions, 0 deletions