drivers: memc: don't check pin control return code
Some SOCs, such as the RT1064 and RT1024, use internal flash and don't define pinmux settings for the flexspi. Don't check the return code of pinctrl_apply_state, because the flexspi driver will fail to initialize when the pin mux settings are simply not required. Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
parent
e2fe582d62
commit
5ee93929b9
|
@ -143,8 +143,11 @@ static int memc_flexspi_init(const struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* Apply pinctrl state */
|
||||
#ifdef CONFIG_PINCTRL
|
||||
/*
|
||||
* SOCs such as the RT1064 and RT1024 have internal flash, and no pinmux
|
||||
* settings, so skip pin control state.
|
||||
*/
|
||||
#if defined(CONFIG_PINCTRL) && !(defined(CONFIG_SOC_MIMXRT1064) || defined(CONFIG_SOC_MIMXRT1024))
|
||||
int ret;
|
||||
|
||||
ret = pinctrl_apply_state(data->pincfg, PINCTRL_STATE_DEFAULT);
|
||||
|
|
Loading…
Reference in a new issue