]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
thermal: Drop dm.h header file
authorSimon Glass <sjg@chromium.org>
Sun, 19 Jul 2020 16:15:41 +0000 (10:15 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 4 Aug 2020 02:19:54 +0000 (22:19 -0400)
This header file should not be included in other header files. Remove it
and use a forward declaration instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-imx/cpu.c
include/thermal.h

index 694c26d35fecc0d267b9d0ec7d6e69d970d08601..fe8d5947cceac3ffe7f7604e76661a7a570ee1f2 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <bootm.h>
 #include <common.h>
+#include <dm.h>
 #include <init.h>
 #include <log.h>
 #include <net.h>
index 11d75256e085967ace76791c9a58c18873f9a5c6..52a3317fd5485810d697c97ce2b2aa2f3603e305 100644 (file)
@@ -7,7 +7,7 @@
 #ifndef _THERMAL_H_
 #define _THERMAL_H_
 
-#include <dm.h>
+struct udevice;
 
 int thermal_get_temp(struct udevice *dev, int *temp);