microblaze: Remove common.h usage
authorTom Rini <trini@konsulko.com>
Thu, 12 Oct 2023 23:03:57 +0000 (19:03 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 24 Oct 2023 20:34:45 +0000 (16:34 -0400)
We can remove common.h from most cases of the code here, and only a few
places need an additional header instead.

Signed-off-by: Tom Rini <trini@konsulko.com>
Acked-by: Michal Simek <michal.simek@amd.com>
arch/microblaze/cpu/cache.c
arch/microblaze/cpu/cpuinfo.c
arch/microblaze/cpu/exception.c
arch/microblaze/cpu/interrupts.c
arch/microblaze/cpu/pvr.c
arch/microblaze/cpu/relocate.c
arch/microblaze/cpu/spl.c
arch/microblaze/include/asm/cpuinfo.h
arch/microblaze/lib/bootm.c
board/xilinx/microblaze-generic/microblaze-generic.c

index 829e6c7..75ec0a8 100644 (file)
@@ -5,7 +5,6 @@
  * Michal SIMEK <monstr@monstr.eu>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <asm/asm.h>
 #include <asm/cache.h>
index 6b15d6c..2bfdf76 100644 (file)
@@ -2,7 +2,6 @@
 /*
  * Copyright (C) 2022, Ovidiu Panait <ovpanait@gmail.com>
  */
-#include <common.h>
 #include <asm/cpuinfo.h>
 #include <asm/global_data.h>
 
index 9414776..6b329fc 100644 (file)
@@ -5,8 +5,8 @@
  * Michal  SIMEK <monstr@monstr.eu>
  */
 
-#include <common.h>
 #include <hang.h>
+#include <stdio.h>
 #include <asm/asm.h>
 
 void _hw_exception_handler (void)
index ac53208..244f7fd 100644 (file)
@@ -7,7 +7,8 @@
  * Yasushi SHOJI <yashi@atmark-techno.com>
  */
 
-#include <common.h>
+#include <log.h>
+#include <vsprintf.h>
 #include <asm/asm.h>
 
 void enable_interrupts(void)
index 23c0f91..71aea0b 100644 (file)
@@ -2,7 +2,6 @@
 /*
  * Copyright (C) 2022, Ovidiu Panait <ovpanait@gmail.com>
  */
-#include <common.h>
 #include <asm/asm.h>
 #include <asm/pvr.h>
 
index 7a15fb2..e46fe5b 100644 (file)
@@ -4,8 +4,9 @@
  * Michal Simek <michal.simek@amd.com>
  */
 
-#include <common.h>
 #include <elf.h>
+#include <log.h>
+#include <linux/types.h>
 
 #define R_MICROBLAZE_NONE      0
 #define R_MICROBLAZE_32                1
index c21beaf..cb224bd 100644 (file)
@@ -5,7 +5,6 @@
  * Michal Simek <michal.simek@amd.com>
  */
 
-#include <common.h>
 #include <command.h>
 #include <image.h>
 #include <log.h>
index 3c58e52..fbd9418 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef __ASM_MICROBLAZE_CPUINFO_H
 #define __ASM_MICROBLAZE_CPUINFO_H
 
+#include <linux/types.h>
+
 /**
  * struct microblaze_cpuinfo - CPU info for microblaze processor core.
  *
index 930384f..f3ec4b7 100644 (file)
@@ -7,7 +7,6 @@
  * Yasushi SHOJI <yashi@atmark-techno.com>
  */
 
-#include <common.h>
 #include <bootstage.h>
 #include <command.h>
 #include <cpu_func.h>
index a427ac9..2b035d5 100644 (file)
@@ -10,7 +10,6 @@
  * header files
  */
 
-#include <common.h>
 #include <config.h>
 #include <env.h>
 #include <init.h>