drivers: memc: remove usage of device_pm_control_nop

device_pm_control_nop is now deprecated in favour of NULL.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2021-04-28 11:19:56 +02:00 committed by Anas Nashif
parent b735f5eb15
commit d8de6f7b44
4 changed files with 4 additions and 4 deletions

View file

@ -163,7 +163,7 @@ static int memc_flexspi_init(const struct device *dev)
\
DEVICE_DT_INST_DEFINE(n, \
memc_flexspi_init, \
device_pm_control_nop, \
NULL, \
&memc_flexspi_data_##n, \
&memc_flexspi_config_##n, \
POST_KERNEL, \

View file

@ -181,7 +181,7 @@ static int memc_flexspi_hyperram_init(const struct device *dev)
\
DEVICE_DT_INST_DEFINE(n, \
memc_flexspi_hyperram_init, \
device_pm_control_nop, \
NULL, \
&memc_flexspi_hyperram_data_##n, \
&memc_flexspi_hyperram_config_##n, \
POST_KERNEL, \

View file

@ -58,5 +58,5 @@ static const struct memc_stm32_config config = {
.pinctrl_len = ARRAY_SIZE(pinctrl),
};
DEVICE_DT_INST_DEFINE(0, memc_stm32_init, device_pm_control_nop, NULL,
DEVICE_DT_INST_DEFINE(0, memc_stm32_init, NULL, NULL,
&config, POST_KERNEL, CONFIG_MEMC_INIT_PRIORITY, NULL);

View file

@ -129,5 +129,5 @@ static const struct memc_stm32_sdram_config config = {
.banks_len = ARRAY_SIZE(bank_config),
};
DEVICE_DT_INST_DEFINE(0, memc_stm32_sdram_init, device_pm_control_nop,
DEVICE_DT_INST_DEFINE(0, memc_stm32_sdram_init, NULL,
NULL, &config, POST_KERNEL, CONFIG_MEMC_INIT_PRIORITY, NULL);