]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: apl: Fix the header order in pmc
authorSimon Glass <sjg@chromium.org>
Mon, 15 Mar 2021 04:25:45 +0000 (17:25 +1300)
committerSimon Glass <sjg@chromium.org>
Fri, 26 Mar 2021 04:03:09 +0000 (17:03 +1300)
The dm.h header should come first. In fact it needs to, since otherwise
the driver model definitions are not available to dt-structs.h

Fix this, since it causes problems with OF_PLATDATA_INST.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/apollolake/pmc.c

index e23d38ea0729ac8b7f36efbf187e3bdb51173e5a..1d21187c96d23926a201ec6de52e342632e1d230 100644 (file)
@@ -9,8 +9,8 @@
 #define LOG_CATEGORY UCLASS_ACPI_PMC
 
 #include <common.h>
-#include <dt-structs.h>
 #include <dm.h>
+#include <dt-structs.h>
 #include <log.h>
 #include <spl.h>
 #include <acpi/acpi_s3.h>