• Randy Dunlap's avatar
    spi: fix spi-at91-usart.c build errors when PINCTRL is not set · c2b142cc
    Randy Dunlap authored
    Fix build errors when CONFIG_PINCTRL is not enabled.
    The header file <linux/pinctrl/consumer.h> handles both CONFIG_PINCTRL
    enabled and disabled cases.
    
      CC [M]  drivers/spi/spi-at91-usart.o
    ../drivers/spi/spi-at91-usart.c: In function 'at91_usart_spi_runtime_suspend':
    ../drivers/spi/spi-at91-usart.c:409:2: error: implicit declaration of function 'pinctrl_pm_select_sleep_state' [-Werror=implicit-function-declaration]
      pinctrl_pm_select_sleep_state(dev);
    ../drivers/spi/spi-at91-usart.c: In function 'at91_usart_spi_runtime_resume':
    ../drivers/spi/spi-at91-usart.c:419:2: error: implicit declaration of function 'pinctrl_pm_select_default_state' [-Werror=implicit-function-declaration]
      pinctrl_pm_select_default_state(dev);
    Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
    Cc: Radu Pirea <radu.pirea@microchip.com>
    Cc: Mark Brown <broonie@kernel.org>
    Cc: linux-spi@vger.kernel.org
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    c2b142cc
spi-at91-usart.c 11.7 KB