Commit 272f2339 authored by Benedikt Schmidt's avatar Benedikt Schmidt Committed by Benjamin Cabé
Browse files

drivers: fpga: fix build of ICE40 bitbang with PINCTRL

Fix the build of the ICE40 FPGA bitbang driver with PINCTRL=y.
Fixes #87739.

Signed-off-by: default avatarBenedikt Schmidt <benedikt.schmidt@embedded-solutions.at>
(cherry picked from commit 0a0e041c)
parent bcabc325
Loading
Loading
Loading
Loading
+1 −1
Changes for drivers/fpga/fpga_ice40_bitbang.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -229,7 +229,7 @@ unlock:
	(void)gpio_pin_configure_dt(&config_bitbang->clk, GPIO_DISCONNECTED);
	(void)gpio_pin_configure_dt(&config_bitbang->pico, GPIO_DISCONNECTED);
#ifdef CONFIG_PINCTRL
	(void)pinctrl_apply_state(config->pincfg, PINCTRL_STATE_DEFAULT);
	(void)pinctrl_apply_state(config_bitbang->pincfg, PINCTRL_STATE_DEFAULT);
#endif /* CONFIG_PINCTRL */

	k_spin_unlock(&data->lock, key);