device: remove inclusion of pm/device.h

The device PM subsystem _depends_ on device, not vice-versa. Devices
only hold a reference to struct pm_device now, and initialize this
reference with the value provided in Z_DEVICE_DEFINE. This requirement
can be solved with a forward struct declaration, meaning there is no
need to include device PM headers.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2021-11-26 12:53:15 +01:00 committed by Carles Cufí
commit 89a4f36fc8
45 changed files with 46 additions and 3 deletions

View file

@ -58,6 +58,7 @@
#include <toolchain.h>
#include <linker/sections.h>
#include <device.h>
#include <pm/device.h>
#include <string.h>
#include <drivers/interrupt_controller/ioapic.h> /* public API declarations */

View file

@ -10,6 +10,7 @@
#include <kernel.h>
#include <kernel_structs.h>
#include <arch/cpu.h>
#include <pm/device.h>
#include <zephyr/types.h>
#include <string.h>
#include <sys/__assert.h>