• Arnd Bergmann's avatar
    net: phy: spi_ks8995: include linux/gpio/consumer.h · 27090cbd
    Arnd Bergmann authored
    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: default avatarArnd Bergmann <arnd@arndb.de>
    Fixes: cd6f288c ("net: phy: spi_ks8995: add support for resetting switch using GPIO")
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    27090cbd
spi_ks8995.c 13.3 KB