]> asedeno.scripts.mit.edu Git - linux.git/commit
HSI: omap-ssi: include pinctrl header files
authorArnd Bergmann <arnd@arndb.de>
Tue, 3 May 2016 15:16:21 +0000 (17:16 +0200)
committerSebastian Reichel <sre@kernel.org>
Mon, 9 May 2016 20:45:18 +0000 (22:45 +0200)
commitac8e3ff3a07cb8bf7a5ce4627c39a50e71dcd394
treee3a018eba74ef958650caff9ea6cfb1e35653469
parent53c703501e3c10283315f1c846d4ebea7d371c4d
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>
drivers/hsi/controllers/omap_ssi_core.c
drivers/hsi/controllers/omap_ssi_port.c