drivers: flash: 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
27ed0fa0c5
commit
faeaea112e
|
@ -610,7 +610,7 @@ static const struct flash_esp32_dev_config flash_esp32_config = {
|
|||
};
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, flash_esp32_init,
|
||||
device_pm_control_nop,
|
||||
NULL,
|
||||
&flash_esp32_data, &flash_esp32_config,
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||
&flash_esp32_driver_api);
|
||||
|
|
|
@ -223,6 +223,6 @@ static const struct flash_driver_api flash_gecko_driver_api = {
|
|||
|
||||
static struct flash_gecko_data flash_gecko_0_data;
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, flash_gecko_init, device_pm_control_nop,
|
||||
DEVICE_DT_INST_DEFINE(0, flash_gecko_init, NULL,
|
||||
&flash_gecko_0_data, NULL, POST_KERNEL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &flash_gecko_driver_api);
|
||||
|
|
|
@ -555,7 +555,7 @@ static const struct flash_driver_api flash_flexspi_nor_api = {
|
|||
\
|
||||
DEVICE_DT_INST_DEFINE(n, \
|
||||
flash_flexspi_nor_init, \
|
||||
device_pm_control_nop, \
|
||||
NULL, \
|
||||
&flash_flexspi_nor_data_##n, \
|
||||
&flash_flexspi_nor_config_##n, \
|
||||
POST_KERNEL, \
|
||||
|
|
|
@ -382,7 +382,7 @@ static const struct flash_sam_dev_cfg flash_sam_cfg = {
|
|||
|
||||
static struct flash_sam_dev_data flash_sam_data;
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, flash_sam_init, device_pm_control_nop,
|
||||
DEVICE_DT_INST_DEFINE(0, flash_sam_init, NULL,
|
||||
&flash_sam_data, &flash_sam_cfg,
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||
&flash_sam_api);
|
||||
|
|
|
@ -466,6 +466,6 @@ static const struct flash_driver_api flash_sam0_api = {
|
|||
|
||||
static struct flash_sam0_data flash_sam0_data_0;
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, flash_sam0_init, device_pm_control_nop,
|
||||
DEVICE_DT_INST_DEFINE(0, flash_sam0_init, NULL,
|
||||
&flash_sam0_data_0, NULL, POST_KERNEL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &flash_sam0_api);
|
||||
|
|
|
@ -414,7 +414,7 @@ static int flash_init(const struct device *dev)
|
|||
return flash_mock_init(dev);
|
||||
}
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, flash_init, device_pm_control_nop,
|
||||
DEVICE_DT_INST_DEFINE(0, flash_init, NULL,
|
||||
NULL, NULL, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||
&flash_sim_api);
|
||||
|
||||
|
|
|
@ -429,6 +429,6 @@ static int stm32_flash_init(const struct device *dev)
|
|||
return flash_stm32_write_protection(dev, false);
|
||||
}
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, stm32_flash_init, device_pm_control_nop,
|
||||
DEVICE_DT_INST_DEFINE(0, stm32_flash_init, NULL,
|
||||
&flash_data, NULL, POST_KERNEL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &flash_stm32_api);
|
||||
|
|
|
@ -892,7 +892,7 @@ static struct flash_stm32_qspi_data flash_stm32_qspi_dev_data = {
|
|||
QSPI_DMA_CHANNEL(STM32_QSPI_NODE, tx_rx)
|
||||
};
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, &flash_stm32_qspi_init, device_pm_control_nop,
|
||||
DEVICE_DT_INST_DEFINE(0, &flash_stm32_qspi_init, NULL,
|
||||
&flash_stm32_qspi_dev_data, &flash_stm32_qspi_cfg,
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||
&flash_stm32_qspi_driver_api);
|
||||
|
|
|
@ -650,6 +650,6 @@ static int stm32h7_flash_init(const struct device *dev)
|
|||
}
|
||||
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, stm32h7_flash_init, device_pm_control_nop,
|
||||
DEVICE_DT_INST_DEFINE(0, stm32h7_flash_init, NULL,
|
||||
&flash_data, NULL, POST_KERNEL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &flash_stm32h7_api);
|
||||
|
|
|
@ -1066,7 +1066,7 @@ static const struct qspi_nor_config flash_id = {
|
|||
.size = INST_0_BYTES,
|
||||
};
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, &qspi_nor_init, device_pm_control_nop,
|
||||
DEVICE_DT_INST_DEFINE(0, &qspi_nor_init, NULL,
|
||||
&qspi_nor_memory_data, &flash_id,
|
||||
POST_KERNEL, CONFIG_NORDIC_QSPI_NOR_INIT_PRIORITY,
|
||||
&qspi_nor_api);
|
||||
|
|
|
@ -170,6 +170,6 @@ static int flash_lpc_init(const struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, flash_lpc_init, device_pm_control_nop,
|
||||
DEVICE_DT_INST_DEFINE(0, flash_lpc_init, NULL,
|
||||
&flash_data, NULL, POST_KERNEL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &flash_lpc_api);
|
||||
|
|
|
@ -282,6 +282,6 @@ static int flash_mcux_init(const struct device *dev)
|
|||
return (rc == kStatus_Success) ? 0 : -EIO;
|
||||
}
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, flash_mcux_init, device_pm_control_nop,
|
||||
DEVICE_DT_INST_DEFINE(0, flash_mcux_init, NULL,
|
||||
&flash_data, NULL, POST_KERNEL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &flash_mcux_api);
|
||||
|
|
|
@ -522,6 +522,6 @@ struct flash_nios2_qspi_config flash_cfg = {
|
|||
|
||||
DEVICE_DEFINE(flash_nios2_qspi,
|
||||
CONFIG_SOC_FLASH_NIOS2_QSPI_DEV_NAME,
|
||||
flash_nios2_qspi_init, device_pm_control_nop, &flash_cfg, NULL,
|
||||
flash_nios2_qspi_init, NULL, &flash_cfg, NULL,
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||
&flash_nios2_qspi_api);
|
||||
|
|
|
@ -287,7 +287,7 @@ static int nrf_flash_init(const struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, nrf_flash_init, device_pm_control_nop,
|
||||
DEVICE_DT_INST_DEFINE(0, nrf_flash_init, NULL,
|
||||
NULL, NULL,
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||
&flash_nrf_api);
|
||||
|
|
|
@ -161,6 +161,6 @@ static int flash_mcux_init(const struct device *dev)
|
|||
return (rc == kStatus_Success) ? 0 : -EIO;
|
||||
}
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, flash_mcux_init, device_pm_control_nop,
|
||||
DEVICE_DT_INST_DEFINE(0, flash_mcux_init, NULL,
|
||||
&flash_data, NULL, POST_KERNEL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &flash_mcux_api);
|
||||
|
|
|
@ -1267,7 +1267,7 @@ static const struct spi_nor_config spi_nor_config_0 = {
|
|||
|
||||
static struct spi_nor_data spi_nor_data_0;
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, &spi_nor_init, device_pm_control_nop,
|
||||
DEVICE_DT_INST_DEFINE(0, &spi_nor_init, NULL,
|
||||
&spi_nor_data_0, &spi_nor_config_0,
|
||||
POST_KERNEL, CONFIG_SPI_NOR_INIT_PRIORITY,
|
||||
&spi_nor_api);
|
||||
|
|
Loading…
Reference in a new issue