drivers: dma: 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:35:17 +02:00 committed by Anas Nashif
commit 861eac31b8
11 changed files with 11 additions and 11 deletions

View file

@ -410,7 +410,7 @@ static const struct dma_driver_api dw_dma_driver_api = {
\ \
DEVICE_DT_INST_DEFINE(inst, \ DEVICE_DT_INST_DEFINE(inst, \
&dw_dma_init, \ &dw_dma_init, \
device_pm_control_nop, \ NULL, \
&dw_dma##inst##_data, \ &dw_dma##inst##_data, \
&dw_dma##inst##_config, POST_KERNEL, \ &dw_dma##inst##_config, POST_KERNEL, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \ CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \

View file

@ -991,7 +991,7 @@ static const struct dma_iproc_pax_cfg pax_dma_cfg = {
DEVICE_DT_INST_DEFINE(0, DEVICE_DT_INST_DEFINE(0,
&dma_iproc_pax_init, &dma_iproc_pax_init,
device_pm_control_nop, NULL,
&pax_dma_data, &pax_dma_data,
&pax_dma_cfg, &pax_dma_cfg,
POST_KERNEL, POST_KERNEL,

View file

@ -1107,7 +1107,7 @@ static const struct dma_iproc_pax_cfg pax_dma_cfg = {
DEVICE_DT_INST_DEFINE(0, DEVICE_DT_INST_DEFINE(0,
&dma_iproc_pax_init, &dma_iproc_pax_init,
device_pm_control_nop, NULL,
&pax_dma_data, &pax_dma_data,
&pax_dma_cfg, &pax_dma_cfg,
POST_KERNEL, POST_KERNEL,

View file

@ -454,7 +454,7 @@ struct dma_mcux_edma_data dma_data;
/* /*
* define the dma * define the dma
*/ */
DEVICE_DT_INST_DEFINE(0, &dma_mcux_edma_init, device_pm_control_nop, DEVICE_DT_INST_DEFINE(0, &dma_mcux_edma_init, NULL,
&dma_data, &dma_config_0, POST_KERNEL, &dma_data, &dma_config_0, POST_KERNEL,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &dma_mcux_edma_api); CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &dma_mcux_edma_api);

View file

@ -469,7 +469,7 @@ static const struct dma_mcux_lpc_config dma_##n##_config = { \
\ \
DEVICE_DT_INST_DEFINE(n, \ DEVICE_DT_INST_DEFINE(n, \
&dma_mcux_lpc_init, \ &dma_mcux_lpc_init, \
device_pm_control_nop, \ NULL, \
&dma_data_##n, &dma_##n##_config,\ &dma_data_##n, &dma_##n##_config,\
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,\ POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,\
&dma_mcux_lpc_api); \ &dma_mcux_lpc_api); \

View file

@ -234,5 +234,5 @@ static struct nios2_msgdma_dev_cfg dma0_nios2_config = {
}; };
DEVICE_DT_INST_DEFINE(0, &nios2_msgdma0_initialize, DEVICE_DT_INST_DEFINE(0, &nios2_msgdma0_initialize,
device_pm_control_nop, NULL, &dma0_nios2_config, POST_KERNEL, NULL, NULL, &dma0_nios2_config, POST_KERNEL,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &nios2_msgdma_driver_api); CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &nios2_msgdma_driver_api);

View file

@ -588,7 +588,7 @@ static const struct dma_pl330_config pl330_config = {
static struct dma_pl330_dev_data pl330_data; static struct dma_pl330_dev_data pl330_data;
DEVICE_DT_INST_DEFINE(0, &dma_pl330_initialize, device_pm_control_nop, DEVICE_DT_INST_DEFINE(0, &dma_pl330_initialize, NULL,
&pl330_data, &pl330_config, &pl330_data, &pl330_config,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&pl330_driver_api); &pl330_driver_api);

View file

@ -457,6 +457,6 @@ static const struct dma_driver_api dma_sam0_api = {
.get_status = dma_sam0_get_status, .get_status = dma_sam0_get_status,
}; };
DEVICE_DT_INST_DEFINE(0, &dma_sam0_init, device_pm_control_nop, DEVICE_DT_INST_DEFINE(0, &dma_sam0_init, NULL,
&dmac_data, NULL, POST_KERNEL, &dmac_data, NULL, POST_KERNEL,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &dma_sam0_api); CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &dma_sam0_api);

View file

@ -362,6 +362,6 @@ static const struct sam_xdmac_dev_cfg dma0_sam_config = {
static struct sam_xdmac_dev_data dma0_sam_data; static struct sam_xdmac_dev_data dma0_sam_data;
DEVICE_DT_INST_DEFINE(0, &sam_xdmac_initialize, device_pm_control_nop, DEVICE_DT_INST_DEFINE(0, &sam_xdmac_initialize, NULL,
&dma0_sam_data, &dma0_sam_config, POST_KERNEL, &dma0_sam_data, &dma0_sam_config, POST_KERNEL,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &sam_xdmac_driver_api); CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &sam_xdmac_driver_api);

View file

@ -674,7 +674,7 @@ static struct dma_stm32_data dma_stm32_data_##index = { \
\ \
DEVICE_DT_INST_DEFINE(index, \ DEVICE_DT_INST_DEFINE(index, \
&dma_stm32_init, \ &dma_stm32_init, \
device_pm_control_nop, \ NULL, \
&dma_stm32_data_##index, &dma_stm32_config_##index, \ &dma_stm32_data_##index, &dma_stm32_config_##index, \
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, \ PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, \
&dma_funcs) &dma_funcs)

View file

@ -277,7 +277,7 @@ static struct dmamux_stm32_data dmamux_stm32_data_##index; \
\ \
DEVICE_DT_INST_DEFINE(index, \ DEVICE_DT_INST_DEFINE(index, \
&dmamux_stm32_init, \ &dmamux_stm32_init, \
device_pm_control_nop, \ NULL, \
&dmamux_stm32_data_##index, &dmamux_stm32_config_##index,\ &dmamux_stm32_data_##index, &dmamux_stm32_config_##index,\
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, \ PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, \
&dma_funcs); &dma_funcs);