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:
parent
c7292efbda
commit
4dd7bc997f
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue