drivers: disk: 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 10:31:10 +02:00 committed by Anas Nashif
commit 374d46c235
3 changed files with 3 additions and 3 deletions

View file

@ -1010,7 +1010,7 @@ static const struct sdhc_spi_config sdhc_spi_cfg_0 = {
#endif
};
DEVICE_DT_INST_DEFINE(0, sdhc_spi_init, device_pm_control_nop,
DEVICE_DT_INST_DEFINE(0, sdhc_spi_init, NULL,
&sdhc_spi_data_0, &sdhc_spi_cfg_0,
POST_KERNEL, CONFIG_SDMMC_INIT_PRIORITY, NULL);
#endif

View file

@ -428,7 +428,7 @@ static struct stm32_sdmmc_priv stm32_sdmmc_priv_1 = {
}
};
DEVICE_DT_INST_DEFINE(0, disk_stm32_sdmmc_init, device_pm_control_nop,
DEVICE_DT_INST_DEFINE(0, disk_stm32_sdmmc_init, NULL,
&stm32_sdmmc_priv_1, NULL, POST_KERNEL,
CONFIG_SDMMC_INIT_PRIORITY,
NULL);

View file

@ -2851,7 +2851,7 @@ static int disk_usdhc_init(const struct device *dev)
\
DEVICE_DT_INST_DEFINE(n, \
&disk_usdhc_init, \
device_pm_control_nop, \
NULL, \
&usdhc_priv_##n, \
&usdhc_config_##n, \
POST_KERNEL, \