samples: pm: move to POST_KERNEL

There's no need to use APPLICATION level.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
Gerard Marull-Paretas 2023-09-13 15:12:21 +02:00 committed by Carles Cufí
commit 4dd7bc997f
2 changed files with 2 additions and 2 deletions

View file

@ -115,5 +115,5 @@ int dummy_init(const struct device *dev)
PM_DEVICE_DEFINE(dummy_driver, dummy_device_pm_action);
DEVICE_DEFINE(dummy_driver, DUMMY_DRIVER_NAME, &dummy_init,
PM_DEVICE_GET(dummy_driver), NULL, NULL, APPLICATION,
PM_DEVICE_GET(dummy_driver), NULL, NULL, POST_KERNEL,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &funcs);

View file

@ -60,4 +60,4 @@ int dev_test_init(const struct device *dev)
static struct dev_test_data data;
DEVICE_DEFINE(dev_test, "dev_test", &dev_test_init, NULL, &data, NULL,
APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &dev_test_api);
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &dev_test_api);