From a4081b66d8300932679121aa076f21ddbb93d404 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Wed, 28 Apr 2021 12:01:21 +0200 Subject: [PATCH] drivers: serial: remove usage of device_pm_control_nop device_pm_control_nop is now deprecated in favour of NULL. Signed-off-by: Gerard Marull-Paretas --- drivers/serial/leuart_gecko.c | 4 ++-- drivers/serial/uart_altera_jtag_hal.c | 2 +- drivers/serial/uart_apbuart.c | 2 +- drivers/serial/uart_cc32xx.c | 2 +- drivers/serial/uart_cmsdk_apb.c | 10 +++++----- drivers/serial/uart_esp32.c | 2 +- drivers/serial/uart_gecko.c | 4 ++-- drivers/serial/uart_imx.c | 2 +- drivers/serial/uart_liteuart.c | 2 +- drivers/serial/uart_lpc11u6x.c | 4 ++-- drivers/serial/uart_mcux.c | 2 +- drivers/serial/uart_mcux_flexcomm.c | 2 +- drivers/serial/uart_mcux_iuart.c | 2 +- drivers/serial/uart_mcux_lpsci.c | 2 +- drivers/serial/uart_mcux_lpuart.c | 2 +- drivers/serial/uart_miv.c | 2 +- drivers/serial/uart_msp432p4xx.c | 2 +- drivers/serial/uart_native_posix.c | 4 ++-- drivers/serial/uart_ns16550.c | 2 +- drivers/serial/uart_nuvoton.c | 2 +- drivers/serial/uart_pl011.c | 6 +++--- drivers/serial/uart_psoc6.c | 2 +- drivers/serial/uart_rtt.c | 2 +- drivers/serial/uart_rv32m1_lpuart.c | 2 +- drivers/serial/uart_sam.c | 2 +- drivers/serial/uart_sam0.c | 2 +- drivers/serial/uart_sifive.c | 4 ++-- drivers/serial/uart_stellaris.c | 6 +++--- drivers/serial/uart_xlnx_ps.c | 2 +- drivers/serial/uart_xlnx_uartlite.c | 2 +- drivers/serial/uart_xmc4xxx.c | 2 +- drivers/serial/usart_sam.c | 2 +- 32 files changed, 45 insertions(+), 45 deletions(-) diff --git a/drivers/serial/leuart_gecko.c b/drivers/serial/leuart_gecko.c index cacf8bdc81c..ee877b7f40d 100644 --- a/drivers/serial/leuart_gecko.c +++ b/drivers/serial/leuart_gecko.c @@ -352,7 +352,7 @@ static const struct leuart_gecko_config leuart_gecko_0_config = { static struct leuart_gecko_data leuart_gecko_0_data; DEVICE_DT_INST_DEFINE(0, &leuart_gecko_init, - device_pm_control_nop, &leuart_gecko_0_data, + NULL, &leuart_gecko_0_data, &leuart_gecko_0_config, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &leuart_gecko_driver_api); @@ -405,7 +405,7 @@ static const struct leuart_gecko_config leuart_gecko_1_config = { static struct leuart_gecko_data leuart_gecko_1_data; DEVICE_DT_INST_DEFINE(1, &leuart_gecko_init, - device_pm_control_nop, &leuart_gecko_1_data, + NULL, &leuart_gecko_1_data, &leuart_gecko_1_config, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &leuart_gecko_driver_api); diff --git a/drivers/serial/uart_altera_jtag_hal.c b/drivers/serial/uart_altera_jtag_hal.c index f89795c0b22..f73cb690791 100644 --- a/drivers/serial/uart_altera_jtag_hal.c +++ b/drivers/serial/uart_altera_jtag_hal.c @@ -58,7 +58,7 @@ static const struct uart_device_config uart_altera_jtag_dev_cfg_0 = { }; DEVICE_DEFINE(uart_altera_jtag_0, "jtag_uart0", - uart_altera_jtag_init, device_pm_control_nop, NULL, + uart_altera_jtag_init, NULL, NULL, &uart_altera_jtag_dev_cfg_0, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &uart_altera_jtag_driver_api); diff --git a/drivers/serial/uart_apbuart.c b/drivers/serial/uart_apbuart.c index 5d32475de21..b9804b6ccb6 100644 --- a/drivers/serial/uart_apbuart.c +++ b/drivers/serial/uart_apbuart.c @@ -530,7 +530,7 @@ static const struct uart_driver_api apbuart_driver_api = { \ DEVICE_DT_INST_DEFINE(index, \ &apbuart_init, \ - device_pm_control_nop, \ + NULL, \ &apbuart##index##_data, \ &apbuart##index##_config, \ PRE_KERNEL_1, \ diff --git a/drivers/serial/uart_cc32xx.c b/drivers/serial/uart_cc32xx.c index c71346e6896..4a0b278604e 100644 --- a/drivers/serial/uart_cc32xx.c +++ b/drivers/serial/uart_cc32xx.c @@ -329,7 +329,7 @@ static struct uart_cc32xx_dev_data_t uart_cc32xx_dev_data_##idx = { \ IF_ENABLED(CONFIG_UART_INTERRUPT_DRIVEN, (.cb = NULL,)) \ }; \ DEVICE_DT_INST_DEFINE(idx, uart_cc32xx_init, \ - device_pm_control_nop, &uart_cc32xx_dev_data_##idx, \ + NULL, &uart_cc32xx_dev_data_##idx, \ &uart_cc32xx_dev_cfg_##idx, \ PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \ (void *)&uart_cc32xx_driver_api); \ diff --git a/drivers/serial/uart_cmsdk_apb.c b/drivers/serial/uart_cmsdk_apb.c index 9f1beea5087..b39428840be 100644 --- a/drivers/serial/uart_cmsdk_apb.c +++ b/drivers/serial/uart_cmsdk_apb.c @@ -505,7 +505,7 @@ static struct uart_cmsdk_apb_dev_data uart_cmsdk_apb_dev_data_0 = { DEVICE_DT_INST_DEFINE(0, &uart_cmsdk_apb_init, - device_pm_control_nop, + NULL, &uart_cmsdk_apb_dev_data_0, &uart_cmsdk_apb_dev_cfg_0, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, @@ -570,7 +570,7 @@ static struct uart_cmsdk_apb_dev_data uart_cmsdk_apb_dev_data_1 = { DEVICE_DT_INST_DEFINE(1, &uart_cmsdk_apb_init, - device_pm_control_nop, + NULL, &uart_cmsdk_apb_dev_data_1, &uart_cmsdk_apb_dev_cfg_1, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, @@ -635,7 +635,7 @@ static struct uart_cmsdk_apb_dev_data uart_cmsdk_apb_dev_data_2 = { DEVICE_DT_INST_DEFINE(2, &uart_cmsdk_apb_init, - device_pm_control_nop, + NULL, &uart_cmsdk_apb_dev_data_2, &uart_cmsdk_apb_dev_cfg_2, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, @@ -700,7 +700,7 @@ static struct uart_cmsdk_apb_dev_data uart_cmsdk_apb_dev_data_3 = { DEVICE_DT_INST_DEFINE(3, &uart_cmsdk_apb_init, - device_pm_control_nop, + NULL, &uart_cmsdk_apb_dev_data_3, &uart_cmsdk_apb_dev_cfg_3, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, @@ -765,7 +765,7 @@ static struct uart_cmsdk_apb_dev_data uart_cmsdk_apb_dev_data_4 = { DEVICE_DT_INST_DEFINE(4, &uart_cmsdk_apb_init, - device_pm_control_nop, + NULL, &uart_cmsdk_apb_dev_data_4, &uart_cmsdk_apb_dev_cfg_4, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, diff --git a/drivers/serial/uart_esp32.c b/drivers/serial/uart_esp32.c index 6c77b3ea57d..1d33d50dfa4 100644 --- a/drivers/serial/uart_esp32.c +++ b/drivers/serial/uart_esp32.c @@ -536,7 +536,7 @@ static struct uart_esp32_data uart_esp32_data_##idx = { \ \ DEVICE_DT_INST_DEFINE(idx, \ uart_esp32_init, \ - device_pm_control_nop, \ + NULL, \ &uart_esp32_data_##idx, \ &uart_esp32_cfg_port_##idx, \ PRE_KERNEL_1, \ diff --git a/drivers/serial/uart_gecko.c b/drivers/serial/uart_gecko.c index 9fed11f3dab..2ef4c08415e 100644 --- a/drivers/serial/uart_gecko.c +++ b/drivers/serial/uart_gecko.c @@ -547,7 +547,7 @@ static const struct uart_driver_api uart_gecko_driver_api = { static struct uart_gecko_data uart_gecko_data_##idx; \ \ DEVICE_DT_INST_DEFINE(idx, &uart_gecko_init, \ - device_pm_control_nop, &uart_gecko_data_##idx, \ + NULL, &uart_gecko_data_##idx, \ &uart_gecko_cfg_##idx, PRE_KERNEL_1, \ CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \ &uart_gecko_driver_api); \ @@ -604,7 +604,7 @@ DT_INST_FOREACH_STATUS_OKAY(GECKO_UART_INIT) \ static struct uart_gecko_data usart_gecko_data_##idx; \ \ - DEVICE_DT_INST_DEFINE(idx, &uart_gecko_init, device_pm_control_nop, \ + DEVICE_DT_INST_DEFINE(idx, &uart_gecko_init, NULL, \ &usart_gecko_data_##idx, \ &usart_gecko_cfg_##idx, PRE_KERNEL_1, \ CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \ diff --git a/drivers/serial/uart_imx.c b/drivers/serial/uart_imx.c index cb328aff0c0..611fdb1939e 100644 --- a/drivers/serial/uart_imx.c +++ b/drivers/serial/uart_imx.c @@ -316,7 +316,7 @@ static const struct uart_driver_api uart_imx_driver_api = { \ static const struct imx_uart_config imx_uart_##n##_config; \ \ - DEVICE_DT_INST_DEFINE(n, &uart_imx_init, device_pm_control_nop, \ + DEVICE_DT_INST_DEFINE(n, &uart_imx_init, NULL, \ &imx_uart_##n##_data, &imx_uart_##n##_config, \ PRE_KERNEL_1, \ CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \ diff --git a/drivers/serial/uart_liteuart.c b/drivers/serial/uart_liteuart.c index caf321f2049..972852d96f8 100644 --- a/drivers/serial/uart_liteuart.c +++ b/drivers/serial/uart_liteuart.c @@ -319,7 +319,7 @@ static const struct uart_liteuart_device_config uart_liteuart_dev_cfg_0 = { DEVICE_DT_INST_DEFINE(0, uart_liteuart_init, - device_pm_control_nop, + NULL, &uart_liteuart_data_0, &uart_liteuart_dev_cfg_0, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, (void *)&uart_liteuart_driver_api); diff --git a/drivers/serial/uart_lpc11u6x.c b/drivers/serial/uart_lpc11u6x.c index d7a404d32c0..3bba4da6b11 100644 --- a/drivers/serial/uart_lpc11u6x.c +++ b/drivers/serial/uart_lpc11u6x.c @@ -440,7 +440,7 @@ static struct lpc11u6x_uart0_data uart0_data; DEVICE_DT_DEFINE(DT_NODELABEL(uart0), &lpc11u6x_uart0_init, - device_pm_control_nop, + NULL, &uart0_data, &uart0_config, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_OBJECTS, &uart0_api); @@ -894,7 +894,7 @@ static const struct lpc11u6x_uartx_config uart_cfg_##idx = { \ static struct lpc11u6x_uartx_data uart_data_##idx; \ \ DEVICE_DT_DEFINE(DT_NODELABEL(uart##idx), \ - &lpc11u6x_uartx_init, device_pm_control_nop, \ + &lpc11u6x_uartx_init, NULL, \ &uart_data_##idx, &uart_cfg_##idx, \ PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_OBJECTS, \ &uartx_api) diff --git a/drivers/serial/uart_mcux.c b/drivers/serial/uart_mcux.c index e8f0391582e..b68fa337d55 100644 --- a/drivers/serial/uart_mcux.c +++ b/drivers/serial/uart_mcux.c @@ -406,7 +406,7 @@ static const struct uart_mcux_config uart_mcux_##n##_config = { \ \ DEVICE_DT_INST_DEFINE(n, \ &uart_mcux_init, \ - device_pm_control_nop, \ + NULL, \ &uart_mcux_##n##_data, \ &uart_mcux_##n##_config, \ PRE_KERNEL_1, \ diff --git a/drivers/serial/uart_mcux_flexcomm.c b/drivers/serial/uart_mcux_flexcomm.c index 240d7cbf4b7..32d1306a918 100644 --- a/drivers/serial/uart_mcux_flexcomm.c +++ b/drivers/serial/uart_mcux_flexcomm.c @@ -332,7 +332,7 @@ static const struct mcux_flexcomm_config mcux_flexcomm_##n##_config = { \ \ DEVICE_DT_INST_DEFINE(n, \ &mcux_flexcomm_init, \ - device_pm_control_nop, \ + NULL, \ &mcux_flexcomm_##n##_data, \ &mcux_flexcomm_##n##_config, \ PRE_KERNEL_1, \ diff --git a/drivers/serial/uart_mcux_iuart.c b/drivers/serial/uart_mcux_iuart.c index c3823da3e48..b12a4fe66c1 100644 --- a/drivers/serial/uart_mcux_iuart.c +++ b/drivers/serial/uart_mcux_iuart.c @@ -313,7 +313,7 @@ static const struct mcux_iuart_config mcux_iuart_##n##_config = { \ \ DEVICE_DT_INST_DEFINE(n, \ &mcux_iuart_init, \ - device_pm_control_nop, \ + NULL, \ &mcux_iuart_##n##_data, \ &mcux_iuart_##n##_config, \ PRE_KERNEL_1, \ diff --git a/drivers/serial/uart_mcux_lpsci.c b/drivers/serial/uart_mcux_lpsci.c index 7e4f9c06f78..254e05d6a8d 100644 --- a/drivers/serial/uart_mcux_lpsci.c +++ b/drivers/serial/uart_mcux_lpsci.c @@ -317,7 +317,7 @@ static const struct mcux_lpsci_config mcux_lpsci_##n##_config = { \ \ DEVICE_DT_INST_DEFINE(n, \ &mcux_lpsci_init, \ - device_pm_control_nop, \ + NULL, \ &mcux_lpsci_##n##_data, \ &mcux_lpsci_##n##_config, \ PRE_KERNEL_1, \ diff --git a/drivers/serial/uart_mcux_lpuart.c b/drivers/serial/uart_mcux_lpuart.c index 09d584fe0c6..7561f1417fa 100644 --- a/drivers/serial/uart_mcux_lpuart.c +++ b/drivers/serial/uart_mcux_lpuart.c @@ -437,7 +437,7 @@ static const struct mcux_lpuart_config mcux_lpuart_##n##_config = { \ \ DEVICE_DT_INST_DEFINE(n, \ &mcux_lpuart_init, \ - device_pm_control_nop, \ + NULL, \ &mcux_lpuart_##n##_data, \ &mcux_lpuart_##n##_config, \ PRE_KERNEL_1, \ diff --git a/drivers/serial/uart_miv.c b/drivers/serial/uart_miv.c index 8fdb41a0914..315760b11f4 100644 --- a/drivers/serial/uart_miv.c +++ b/drivers/serial/uart_miv.c @@ -408,7 +408,7 @@ static const struct uart_miv_device_config uart_miv_dev_cfg_0 = { #endif }; -DEVICE_DT_INST_DEFINE(0, uart_miv_init, device_pm_control_nop, +DEVICE_DT_INST_DEFINE(0, uart_miv_init, NULL, &uart_miv_data_0, &uart_miv_dev_cfg_0, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, (void *)&uart_miv_driver_api); diff --git a/drivers/serial/uart_msp432p4xx.c b/drivers/serial/uart_msp432p4xx.c index f0257a71402..e55c40536e6 100644 --- a/drivers/serial/uart_msp432p4xx.c +++ b/drivers/serial/uart_msp432p4xx.c @@ -359,7 +359,7 @@ static const struct uart_driver_api uart_msp432p4xx_driver_api = { }; DEVICE_DT_INST_DEFINE(0, - uart_msp432p4xx_init, device_pm_control_nop, + uart_msp432p4xx_init, NULL, &uart_msp432p4xx_dev_data_0, &uart_msp432p4xx_dev_cfg_0, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, diff --git a/drivers/serial/uart_native_posix.c b/drivers/serial/uart_native_posix.c index f621a494329..2bd9c1db426 100644 --- a/drivers/serial/uart_native_posix.c +++ b/drivers/serial/uart_native_posix.c @@ -365,14 +365,14 @@ static int np_uart_tty_poll_in(const struct device *dev, } DEVICE_DT_INST_DEFINE(0, - &np_uart_0_init, device_pm_control_nop, + &np_uart_0_init, NULL, (void *)&native_uart_status_0, NULL, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &np_uart_driver_api_0); #if defined(CONFIG_UART_NATIVE_POSIX_PORT_1_ENABLE) DEVICE_DT_INST_DEFINE(1, - &np_uart_1_init, device_pm_control_nop, + &np_uart_1_init, NULL, (void *)&native_uart_status_1, NULL, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &np_uart_driver_api_1); diff --git a/drivers/serial/uart_ns16550.c b/drivers/serial/uart_ns16550.c index 1b9483e121e..612d17490a8 100644 --- a/drivers/serial/uart_ns16550.c +++ b/drivers/serial/uart_ns16550.c @@ -1088,7 +1088,7 @@ static const struct uart_driver_api uart_ns16550_driver_api = { .uart_config.flow_ctrl = DEV_DATA_FLOW_CTRL(n), \ DEV_DATA_DLF_INIT(n) \ }; \ - DEVICE_DT_INST_DEFINE(n, &uart_ns16550_init, device_pm_control_nop, \ + DEVICE_DT_INST_DEFINE(n, &uart_ns16550_init, NULL, \ &uart_ns16550_dev_data_##n, &uart_ns16550_dev_cfg_##n, \ PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \ &uart_ns16550_driver_api); \ diff --git a/drivers/serial/uart_nuvoton.c b/drivers/serial/uart_nuvoton.c index 56667924f52..a47d9266904 100644 --- a/drivers/serial/uart_nuvoton.c +++ b/drivers/serial/uart_nuvoton.c @@ -200,7 +200,7 @@ static struct uart_numicro_data uart_numicro_data_##index = { \ \ DEVICE_DT_INST_DEFINE(index, \ &uart_numicro_init, \ - device_pm_control_nop, \ + NULL, \ &uart_numicro_data_##index, \ &uart_numicro_cfg_##index, \ PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \ diff --git a/drivers/serial/uart_pl011.c b/drivers/serial/uart_pl011.c index a5eb3757cd8..ed667a51f83 100644 --- a/drivers/serial/uart_pl011.c +++ b/drivers/serial/uart_pl011.c @@ -440,7 +440,7 @@ static struct pl011_data pl011_data_port_0 = { DEVICE_DT_INST_DEFINE(0, &pl011_init, - device_pm_control_nop, + NULL, &pl011_data_port_0, &pl011_cfg_port_0, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, @@ -503,7 +503,7 @@ static struct pl011_data pl011_data_port_1 = { DEVICE_DT_INST_DEFINE(1, &pl011_init, - device_pm_control_nop, + NULL, &pl011_data_port_1, &pl011_cfg_port_1, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, @@ -568,7 +568,7 @@ static struct pl011_data pl011_data_sbsa = { DEVICE_DT_INST_DEFINE(0, &pl011_init, - device_pm_control_nop, + NULL, &pl011_data_sbsa, &pl011_cfg_sbsa, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, diff --git a/drivers/serial/uart_psoc6.c b/drivers/serial/uart_psoc6.c index 5ad44ada6cf..223376969a8 100644 --- a/drivers/serial/uart_psoc6.c +++ b/drivers/serial/uart_psoc6.c @@ -358,7 +358,7 @@ static const struct uart_driver_api uart_psoc6_driver_api = { \ CY_PSOC6_UART_IRQ_SET_FUNC(n) \ }; \ - DEVICE_DT_INST_DEFINE(n, &uart_psoc6_init, device_pm_control_nop, \ + DEVICE_DT_INST_DEFINE(n, &uart_psoc6_init, NULL, \ CY_PSOC6_UART_DECL_DATA_PTR(n), \ &cy_psoc6_uart##n##_config, PRE_KERNEL_1, \ CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \ diff --git a/drivers/serial/uart_rtt.c b/drivers/serial/uart_rtt.c index e4d161697c9..a214a1c4d26 100644 --- a/drivers/serial/uart_rtt.c +++ b/drivers/serial/uart_rtt.c @@ -215,7 +215,7 @@ static const struct uart_driver_api uart_rtt_driver_api = { #define UART_RTT_INIT(idx, config) \ struct uart_rtt_data uart_rtt##idx##_data; \ \ - DEVICE_DT_DEFINE(UART_RTT(idx), uart_rtt_init, device_pm_control_nop, \ + DEVICE_DT_DEFINE(UART_RTT(idx), uart_rtt_init, NULL, \ &uart_rtt##idx##_data, config, \ PRE_KERNEL_2, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \ &uart_rtt_driver_api) diff --git a/drivers/serial/uart_rv32m1_lpuart.c b/drivers/serial/uart_rv32m1_lpuart.c index eafc82ce490..5f7dc3652d4 100644 --- a/drivers/serial/uart_rv32m1_lpuart.c +++ b/drivers/serial/uart_rv32m1_lpuart.c @@ -330,7 +330,7 @@ static const struct uart_driver_api rv32m1_lpuart_driver_api = { \ DEVICE_DT_INST_DEFINE(n, \ &rv32m1_lpuart_init, \ - device_pm_control_nop, \ + NULL, \ &rv32m1_lpuart_##n##_data, \ &rv32m1_lpuart_##n##_cfg, \ PRE_KERNEL_1, \ diff --git a/drivers/serial/uart_sam.c b/drivers/serial/uart_sam.c index 2209b5d5efc..f0eba1d725e 100644 --- a/drivers/serial/uart_sam.c +++ b/drivers/serial/uart_sam.c @@ -362,7 +362,7 @@ static const struct uart_driver_api uart_sam_driver_api = { static const struct uart_sam_dev_cfg uart##n##_sam_config; \ \ DEVICE_DT_INST_DEFINE(n, &uart_sam_init, \ - device_pm_control_nop, &uart##n##_sam_data, \ + NULL, &uart##n##_sam_data, \ &uart##n##_sam_config, PRE_KERNEL_1, \ CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \ &uart_sam_driver_api); \ diff --git a/drivers/serial/uart_sam0.c b/drivers/serial/uart_sam0.c index 1adb301fb85..ea0accfb65e 100644 --- a/drivers/serial/uart_sam0.c +++ b/drivers/serial/uart_sam0.c @@ -1137,7 +1137,7 @@ static const struct uart_sam0_dev_cfg uart_sam0_config_##n = { \ static struct uart_sam0_dev_data uart_sam0_data_##n; \ UART_SAM0_IRQ_HANDLER_DECL(n); \ UART_SAM0_CONFIG_DEFN(n); \ -DEVICE_DT_INST_DEFINE(n, uart_sam0_init, device_pm_control_nop, \ +DEVICE_DT_INST_DEFINE(n, uart_sam0_init, NULL, \ &uart_sam0_data_##n, \ &uart_sam0_config_##n, PRE_KERNEL_1, \ CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \ diff --git a/drivers/serial/uart_sifive.c b/drivers/serial/uart_sifive.c index d7f5ae5010d..f7f20d551c7 100644 --- a/drivers/serial/uart_sifive.c +++ b/drivers/serial/uart_sifive.c @@ -394,7 +394,7 @@ static const struct uart_sifive_device_config uart_sifive_dev_cfg_0 = { DEVICE_DT_INST_DEFINE(0, uart_sifive_init, - device_pm_control_nop, + NULL, &uart_sifive_data_0, &uart_sifive_dev_cfg_0, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, (void *)&uart_sifive_driver_api); @@ -433,7 +433,7 @@ static const struct uart_sifive_device_config uart_sifive_dev_cfg_1 = { DEVICE_DT_INST_DEFINE(1, uart_sifive_init, - device_pm_control_nop, + NULL, &uart_sifive_data_1, &uart_sifive_dev_cfg_1, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, (void *)&uart_sifive_driver_api); diff --git a/drivers/serial/uart_stellaris.c b/drivers/serial/uart_stellaris.c index d799cbe0479..722aea504dc 100644 --- a/drivers/serial/uart_stellaris.c +++ b/drivers/serial/uart_stellaris.c @@ -650,7 +650,7 @@ static struct uart_stellaris_dev_data_t uart_stellaris_dev_data_0 = { DEVICE_DT_INST_DEFINE(0, &uart_stellaris_init, - device_pm_control_nop, + NULL, &uart_stellaris_dev_data_0, &uart_stellaris_dev_cfg_0, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &uart_stellaris_driver_api); @@ -689,7 +689,7 @@ static struct uart_stellaris_dev_data_t uart_stellaris_dev_data_1 = { DEVICE_DT_INST_DEFINE(1, &uart_stellaris_init, - device_pm_control_nop, + NULL, &uart_stellaris_dev_data_1, &uart_stellaris_dev_cfg_1, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &uart_stellaris_driver_api); @@ -728,7 +728,7 @@ static struct uart_stellaris_dev_data_t uart_stellaris_dev_data_2 = { DEVICE_DT_INST_DEFINE(2, &uart_stellaris_init, - device_pm_control_nop, + NULL, &uart_stellaris_dev_data_2, &uart_stellaris_dev_cfg_2, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &uart_stellaris_driver_api); diff --git a/drivers/serial/uart_xlnx_ps.c b/drivers/serial/uart_xlnx_ps.c index 5203c274556..7e0c4f44b2e 100644 --- a/drivers/serial/uart_xlnx_ps.c +++ b/drivers/serial/uart_xlnx_ps.c @@ -1205,7 +1205,7 @@ static struct uart_xlnx_ps_dev_config uart_xlnx_ps_dev_cfg_##port = { \ #define UART_XLNX_PS_INIT(port) \ DEVICE_DT_INST_DEFINE(port, \ uart_xlnx_ps_init, \ - device_pm_control_nop, \ + NULL, \ &uart_xlnx_ps_dev_data_##port, \ &uart_xlnx_ps_dev_cfg_##port, \ PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \ diff --git a/drivers/serial/uart_xlnx_uartlite.c b/drivers/serial/uart_xlnx_uartlite.c index 47c8341f1ed..78035acfc6b 100644 --- a/drivers/serial/uart_xlnx_uartlite.c +++ b/drivers/serial/uart_xlnx_uartlite.c @@ -375,7 +375,7 @@ static const struct xlnx_uartlite_config xlnx_uartlite_##n##_config = { \ \ DEVICE_DT_INST_DEFINE(n, \ &xlnx_uartlite_init, \ - device_pm_control_nop, \ + NULL, \ &xlnx_uartlite_##n##_data, \ &xlnx_uartlite_##n##_config, \ PRE_KERNEL_1, \ diff --git a/drivers/serial/uart_xmc4xxx.c b/drivers/serial/uart_xmc4xxx.c index 8ba32875cae..6fd52a74811 100644 --- a/drivers/serial/uart_xmc4xxx.c +++ b/drivers/serial/uart_xmc4xxx.c @@ -74,7 +74,7 @@ static const struct uart_device_config xmc4xxx_config_##index = { \ }; \ \ DEVICE_DT_INST_DEFINE(index, &uart_xmc4xxx_init, \ - device_pm_control_nop, \ + NULL, \ &xmc4xxx_data_##index, \ &xmc4xxx_config_##index, PRE_KERNEL_1, \ CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \ diff --git a/drivers/serial/usart_sam.c b/drivers/serial/usart_sam.c index 4121be21718..df48e891274 100644 --- a/drivers/serial/usart_sam.c +++ b/drivers/serial/usart_sam.c @@ -363,7 +363,7 @@ static const struct uart_driver_api usart_sam_driver_api = { static const struct usart_sam_dev_cfg usart##n##_sam_config; \ \ DEVICE_DT_INST_DEFINE(n, \ - &usart_sam_init, device_pm_control_nop, \ + &usart_sam_init, NULL, \ &usart##n##_sam_data, \ &usart##n##_sam_config, PRE_KERNEL_1, \ CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \