Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

HSI: omap-ssi: include pinctrl header files

The driver now uses some pinctrl functions, but fails
to build if PINCTRL is disabled because the respective
header files are only included indirectly:

drivers/hsi/controllers/omap_ssi_core.c: In function 'ssi_clk_event':
drivers/hsi/controllers/omap_ssi_core.c:317:4: error: implicit declaration of function 'pinctrl_pm_select_idle_state' [-Werror=implicit-function-declaration]
drivers/hsi/controllers/omap_ssi_core.c:339:4: error: implicit declaration of function 'pinctrl_pm_select_default_state' [-Werror=implicit-function-declaration]
drivers/hsi/controllers/omap_ssi_port.c: In function 'ssi_flush':
drivers/hsi/controllers/omap_ssi_port.c:520:2: error: implicit declaration of function 'pinctrl_pm_select_idle_state' [-Werror=implicit-function-declaration]

This includes the headers from the files that call the functions,
which works even if pinctrl is turned off.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 4bcf7414528a ("HSI: omap-ssi: add clk change support")
Signed-off-by: Sebastian Reichel <sre@kernel.org>

authored by

Arnd Bergmann and committed by
Sebastian Reichel
ac8e3ff3 53c70350

+2
+1
drivers/hsi/controllers/omap_ssi_core.c
··· 35 35 #include <linux/interrupt.h> 36 36 #include <linux/spinlock.h> 37 37 #include <linux/debugfs.h> 38 + #include <linux/pinctrl/consumer.h> 38 39 #include <linux/pm_runtime.h> 39 40 #include <linux/of_platform.h> 40 41 #include <linux/hsi/hsi.h>
+1
drivers/hsi/controllers/omap_ssi_port.c
··· 26 26 #include <linux/delay.h> 27 27 28 28 #include <linux/gpio/consumer.h> 29 + #include <linux/pinctrl/consumer.h> 29 30 #include <linux/debugfs.h> 30 31 31 32 #include "omap_ssi_regs.h"