tests: kernel: 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
9a2fcb7a97
commit
1eabc24469
4 changed files with 6 additions and 6 deletions
|
@ -54,12 +54,12 @@ static struct subsystem_api my_driver_B_api_funcs = {
|
|||
* @cond INTERNAL_HIDDEN
|
||||
*/
|
||||
DEVICE_DEFINE(my_driver_A, MY_DRIVER_A, &common_driver_init,
|
||||
device_pm_control_nop, NULL, NULL,
|
||||
NULL, NULL, NULL,
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&my_driver_A_api_funcs);
|
||||
|
||||
DEVICE_DEFINE(my_driver_B, MY_DRIVER_B, &common_driver_init,
|
||||
device_pm_control_nop, NULL, NULL,
|
||||
NULL, NULL, NULL,
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&my_driver_B_api_funcs);
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ int bad_driver_init(const struct device *dev)
|
|||
* @cond INTERNAL_HIDDEN
|
||||
*/
|
||||
DEVICE_DEFINE(bad_driver, BAD_DRIVER_NAME, &bad_driver_init,
|
||||
device_pm_control_nop, NULL, NULL, POST_KERNEL,
|
||||
NULL, NULL, NULL, POST_KERNEL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &funcs);
|
||||
|
||||
/**
|
||||
|
|
|
@ -36,7 +36,7 @@ int dummy_init(const struct device *dev)
|
|||
* @cond INTERNAL_HIDDEN
|
||||
*/
|
||||
DEVICE_DEFINE(dummy_driver, DUMMY_DRIVER_NAME, &dummy_init,
|
||||
device_pm_control_nop, NULL, NULL, POST_KERNEL,
|
||||
NULL, NULL, NULL, POST_KERNEL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &funcs);
|
||||
|
||||
/**
|
||||
|
|
|
@ -36,7 +36,7 @@ int foo_single_init(const struct device *dev)
|
|||
}
|
||||
|
||||
/* fake API pointer, we don't use it at all for this suite */
|
||||
DEVICE_DEFINE(foo0, "foo0", foo_single_init, device_pm_control_nop,
|
||||
DEVICE_DEFINE(foo0, "foo0", foo_single_init, NULL,
|
||||
&foo0_data, &foo0_config,
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
(void *)0xDEADBEEF);
|
||||
|
@ -130,7 +130,7 @@ int foo_mult_init(const struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
DEVICE_DEFINE(foo12, "foo12", foo_mult_init, device_pm_control_nop,
|
||||
DEVICE_DEFINE(foo12, "foo12", foo_mult_init, NULL,
|
||||
&foo12_data, &foo12_config,
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
(void *)0xDEADBEEF);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue