diff mbox series

ARM: uniphier: clean up board_init

Message ID 1511935283-5342-1-git-send-email-yamada.masahiro@socionext.com
State Accepted
Commit ac389b07493daa9db00749a415e679abcb1eb59a
Headers show
Series ARM: uniphier: clean up board_init | expand

Commit Message

Masahiro Yamada Nov. 29, 2017, 6:01 a.m. UTC
Remove unnecessary DECLARE_GLOBAL_DATA_PTR and header includes.

<common.h> has been replaced with <linux/errno.h> and <linux/printk.h>.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 arch/arm/mach-uniphier/board_init.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

Comments

Masahiro Yamada Dec. 4, 2017, 1:03 p.m. UTC | #1
2017-11-29 15:01 GMT+09:00 Masahiro Yamada <yamada.masahiro@socionext.com>:
> Remove unnecessary DECLARE_GLOBAL_DATA_PTR and header includes.
>
> <common.h> has been replaced with <linux/errno.h> and <linux/printk.h>.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> ---
>


Applied to u-boot-uniphier.
diff mbox series

Patch

diff --git a/arch/arm/mach-uniphier/board_init.c b/arch/arm/mach-uniphier/board_init.c
index 121b786..8418902 100644
--- a/arch/arm/mach-uniphier/board_init.c
+++ b/arch/arm/mach-uniphier/board_init.c
@@ -6,17 +6,14 @@ 
  * SPDX-License-Identifier:	GPL-2.0+
  */
 
-#include <common.h>
-#include <libfdt.h>
+#include <linux/errno.h>
 #include <linux/io.h>
+#include <linux/printk.h>
 
 #include "init.h"
 #include "micro-support-card.h"
-#include "sg-regs.h"
 #include "soc-info.h"
 
-DECLARE_GLOBAL_DATA_PTR;
-
 #ifdef CONFIG_ARCH_UNIPHIER_LD20
 static void uniphier_ld20_misc_init(void)
 {