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:
parent
ed97e6d106
commit
374d46c235
3 changed files with 3 additions and 3 deletions
|
@ -1010,7 +1010,7 @@ static const struct sdhc_spi_config sdhc_spi_cfg_0 = {
|
||||||
#endif
|
#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,
|
&sdhc_spi_data_0, &sdhc_spi_cfg_0,
|
||||||
POST_KERNEL, CONFIG_SDMMC_INIT_PRIORITY, NULL);
|
POST_KERNEL, CONFIG_SDMMC_INIT_PRIORITY, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -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,
|
&stm32_sdmmc_priv_1, NULL, POST_KERNEL,
|
||||||
CONFIG_SDMMC_INIT_PRIORITY,
|
CONFIG_SDMMC_INIT_PRIORITY,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
|
@ -2851,7 +2851,7 @@ static int disk_usdhc_init(const struct device *dev)
|
||||||
\
|
\
|
||||||
DEVICE_DT_INST_DEFINE(n, \
|
DEVICE_DT_INST_DEFINE(n, \
|
||||||
&disk_usdhc_init, \
|
&disk_usdhc_init, \
|
||||||
device_pm_control_nop, \
|
NULL, \
|
||||||
&usdhc_priv_##n, \
|
&usdhc_priv_##n, \
|
||||||
&usdhc_config_##n, \
|
&usdhc_config_##n, \
|
||||||
POST_KERNEL, \
|
POST_KERNEL, \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue