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:
parent
b735f5eb15
commit
d8de6f7b44
|
@ -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, \
|
||||
|
|
|
@ -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, \
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue