]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: spi_ks8995: include linux/gpio/consumer.h
authorArnd Bergmann <arnd@arndb.de>
Fri, 12 Feb 2016 10:42:34 +0000 (11:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2016 01:37:04 +0000 (20:37 -0500)
commitcafb0370347350938be25fd284520da72354355c
treebf54eece6ce3c8dadcc1090ea0888eaba12fbcaf
parent09a9fdc03ba1861934a35b1a802e11bb0280fa47
net: phy: spi_ks8995: include linux/gpio/consumer.h

The ks8995 phy driver just started using gpiod_* functions, which are
declared in linux/gpio/consumer.h, not linux/gpio.h, resulting in a
build failure in randconfig builds that do not have CONFIG_GPIOLIB
enabled:

drivers/net/phy/spi_ks8995.c: In function 'ks8995_probe':
drivers/net/phy/spi_ks8995.c:477:3: error: implicit declaration of function 'gpiod_set_value' [-Werror=implicit-function-declaration]

This changes the header inclusion so it builds in all configurations.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: c4ecc8639694 ("net: phy: spi_ks8995: add support for resetting switch using GPIO")
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/spi_ks8995.c