mscc: Drop dm.h header file
authorSimon Glass <sjg@chromium.org>
Sun, 19 Jul 2020 16:15:51 +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
from each one and use a forward declaration instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/mips/mach-mscc/include/mach/jr2/jr2.h
arch/mips/mach-mscc/include/mach/luton/luton.h
arch/mips/mach-mscc/include/mach/ocelot/ocelot.h
arch/mips/mach-mscc/include/mach/serval/serval.h
arch/mips/mach-mscc/include/mach/servalt/servalt.h
board/mscc/servalt/servalt.c

index 67244f6..3a779e7 100644 (file)
@@ -8,9 +8,6 @@
 #ifndef _MSCC_JR2_H_
 #define _MSCC_JR2_H_
 
-#include <linux/bitops.h>
-#include <dm.h>
-
 /*
  * Target offset base(s)
  */
index 19f02ed..dda665f 100644 (file)
@@ -8,9 +8,6 @@
 #ifndef _MSCC_OCELOT_H_
 #define _MSCC_OCELOT_H_
 
-#include <linux/bitops.h>
-#include <dm.h>
-
 /*
  * Target offset base(s)
  */
index 2cb2135..72b07c3 100644 (file)
@@ -8,9 +8,6 @@
 #ifndef _MSCC_OCELOT_H_
 #define _MSCC_OCELOT_H_
 
-#include <linux/bitops.h>
-#include <dm.h>
-
 /*
  * Target offset base(s)
  */
index 763d18f..a78c6e5 100644 (file)
@@ -8,9 +8,6 @@
 #ifndef _MSCC_SERVAL_H_
 #define _MSCC_SERVAL_H_
 
-#include <linux/bitops.h>
-#include <dm.h>
-
 /*
  * Target offset base(s)
  */
index 9015bc7..4d7d088 100644 (file)
@@ -8,9 +8,6 @@
 #ifndef _MSCC_SERVALT_H_
 #define _MSCC_SERVALT_H_
 
-#include <linux/bitops.h>
-#include <dm.h>
-
 /*
  * Target offset base(s)
  */
index d0e6016..879f5de 100644 (file)
@@ -9,6 +9,8 @@
 #include <asm/io.h>
 #include <led.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 enum {
        BOARD_TYPE_PCB116 = 0xAABBCE00,
 };