core: Remove <common.h> and add needed includes
authorTom Rini <trini@konsulko.com>
Thu, 2 May 2024 01:30:37 +0000 (19:30 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 7 May 2024 14:00:41 +0000 (08:00 -0600)
Remove <common.h> from this driver directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
20 files changed:
drivers/core/acpi.c
drivers/core/device-remove.c
drivers/core/device.c
drivers/core/devres.c
drivers/core/dump.c
drivers/core/fdtaddr.c
drivers/core/lists.c
drivers/core/of_access.c
drivers/core/of_addr.c
drivers/core/of_extra.c
drivers/core/ofnode.c
drivers/core/read.c
drivers/core/read_extra.c
drivers/core/regmap.c
drivers/core/root.c
drivers/core/simple-bus.c
drivers/core/simple-pm-bus.c
drivers/core/syscon-uclass.c
drivers/core/uclass.c
drivers/core/util.c

index 0ebd288..9f78422 100644 (file)
@@ -8,7 +8,6 @@
 
 #define LOG_CATEOGRY   LOGC_ACPI
 
-#include <common.h>
 #include <display_options.h>
 #include <dm.h>
 #include <log.h>
index a86b932..437080e 100644 (file)
@@ -10,7 +10,6 @@
 
 #define LOG_CATEGORY   LOGC_DM
 
-#include <common.h>
 #include <errno.h>
 #include <log.h>
 #include <malloc.h>
index bf7f261..18e2bd0 100644 (file)
@@ -8,8 +8,8 @@
  * Pavel Herrmann <morpheus.ibis@gmail.com>
  */
 
-#include <common.h>
 #include <cpu_func.h>
+#include <errno.h>
 #include <event.h>
 #include <log.h>
 #include <asm/global_data.h>
index 78914bd..8df08b9 100644 (file)
@@ -9,7 +9,6 @@
 
 #define LOG_CATEGORY LOGC_DEVRES
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <linux/compat.h>
index 8411248..5ec30d5 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright (c) 2015 Google, Inc
  */
 
-#include <common.h>
 #include <dm.h>
 #include <malloc.h>
 #include <mapmem.h>
index 5f27d25..6be8ea0 100644 (file)
@@ -8,7 +8,6 @@
  * Pavel Herrmann <morpheus.ibis@gmail.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdt_support.h>
 #include <log.h>
index 8034a8f..2839a9b 100644 (file)
@@ -8,7 +8,6 @@
 
 #define LOG_CATEGORY LOGC_DM
 
-#include <common.h>
 #include <errno.h>
 #include <log.h>
 #include <dm/device.h>
index c8db743..41f2e09 100644 (file)
@@ -19,7 +19,6 @@
  * Linux version.
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <asm/global_data.h>
index b3b3d7c..d7913ab 100644 (file)
@@ -6,7 +6,6 @@
  * Copyright (c) 2017 Google, Inc
  */
 
-#include <common.h>
 #include <log.h>
 #include <linux/bug.h>
 #include <linux/libfdt.h>
index 59ce917..a3ebe9e 100644 (file)
@@ -4,7 +4,6 @@
  * Written by Simon Glass <sjg@chromium.org>
  */
 
-#include <common.h>
 #include <log.h>
 #include <linux/libfdt.h>
 #include <dm/of_access.h>
index 21a233f..9a5eaaa 100644 (file)
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY   LOGC_DT
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <fdt_support.h>
index 1a4a95c..55c19f3 100644 (file)
@@ -4,7 +4,6 @@
  * Written by Simon Glass <sjg@chromium.org>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/of_access.h>
 #include <mapmem.h>
index 5138348..5a0153a 100644 (file)
@@ -4,7 +4,6 @@
  * Written by Simon Glass <sjg@chromium.org>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/of_addr.h>
 #include <dm/read.h>
index dd32328..7ff7834 100644 (file)
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY   LOGC_DM
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
index d4ae652..4bfd08f 100644 (file)
@@ -8,7 +8,6 @@
 
 #define LOG_CATEGORY UCLASS_ROOT
 
-#include <common.h>
 #include <errno.h>
 #include <fdtdec.h>
 #include <log.h>
index 6022e75..f402bb5 100644 (file)
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_SIMPLE_BUS
 
-#include <common.h>
 #include <asm/global_data.h>
 #include <dm.h>
 #include <dm/simple_bus.h>
index 1bb0d86..f38372e 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright (C) 2020 Sean Anderson <seanga2@gmail.com>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 
index a47b8bd..f0e69d7 100644 (file)
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_SYSCON
 
-#include <common.h>
 #include <log.h>
 #include <syscon.h>
 #include <dm.h>
index e46d571..762536e 100644 (file)
@@ -8,7 +8,6 @@
 
 #define LOG_CATEGORY LOGC_DM
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
index 81497df..108a3bc 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright (c) 2013 Google, Inc
  */
 
-#include <common.h>
 #include <dm/device.h>
 #include <dm/ofnode.h>
 #include <dm/read.h>