drivers: use new PM macros
Port some drivers to the recently introduced macros to showcase its usage and be able to do some initial testing (nRF52840). Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
e2f33dd97c
commit
88a69674c0
38 changed files with 123 additions and 71 deletions
|
@ -428,7 +428,9 @@ static int loapic_pm_action(const struct device *dev,
|
|||
}
|
||||
#endif /* CONFIG_PM_DEVICE */
|
||||
|
||||
DEVICE_DEFINE(loapic, "loapic", loapic_init, loapic_pm_action, NULL, NULL,
|
||||
PM_DEVICE_DEFINE(loapic, loapic_pm_action);
|
||||
|
||||
DEVICE_DEFINE(loapic, "loapic", loapic_init, PM_DEVICE_REF(loapic), NULL, NULL,
|
||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, NULL);
|
||||
|
||||
#if CONFIG_LOAPIC_SPURIOUS_VECTOR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue