diff mbox series

[040/149] board: cobra5272: Remove <common.h> and add needed includes

Message ID 20240501024316.1767971-40-trini@konsulko.com
State Accepted
Commit 6a74f1aae28327d2c2ea272040e58fec1c183835
Delegated to: Tom Rini
Headers show
Series [001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> | expand

Commit Message

Tom Rini May 1, 2024, 2:41 a.m. UTC
Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Angelo Dureghello <angelo@kernel-space.org>
---
 board/cobra5272/cobra5272.c | 2 +-
 board/cobra5272/flash.c     | 6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

Comments

Angelo Dureghello May 2, 2024, 6:47 a.m. UTC | #1
Hi Tom,

Acked-by:Angelo Dureghello <angelo@kernel-space.org>

On 01/05/24 4:41 AM, Tom Rini wrote:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Angelo Dureghello <angelo@kernel-space.org>
> ---
>   board/cobra5272/cobra5272.c | 2 +-
>   board/cobra5272/flash.c     | 6 +++++-
>   2 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/board/cobra5272/cobra5272.c b/board/cobra5272/cobra5272.c
> index 69a9df942311..774aa82b57fe 100644
> --- a/board/cobra5272/cobra5272.c
> +++ b/board/cobra5272/cobra5272.c
> @@ -4,7 +4,7 @@
>    * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
>    */
>   
> -#include <common.h>
> +#include <config.h>
>   #include <init.h>
>   #include <asm/global_data.h>
>   #include <asm/immap.h>
> diff --git a/board/cobra5272/flash.c b/board/cobra5272/flash.c
> index 8416af163ad1..157b71da85e8 100644
> --- a/board/cobra5272/flash.c
> +++ b/board/cobra5272/flash.c
> @@ -4,13 +4,17 @@
>    * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
>    */
>   
> -#include <common.h>
> +#include <config.h>
>   #include <console.h>
>   #include <cpu_func.h>
>   #include <flash.h>
>   #include <irq_func.h>
> +#include <stdio.h>
> +#include <time.h>
>   #include <uuid.h>
> +#include <vsprintf.h>
>   #include <linux/delay.h>
> +#include <linux/string.h>
>   
>   #define PHYS_FLASH_1 CFG_SYS_FLASH_BASE
>   #define FLASH_BANK_SIZE 0x200000
diff mbox series

Patch

diff --git a/board/cobra5272/cobra5272.c b/board/cobra5272/cobra5272.c
index 69a9df942311..774aa82b57fe 100644
--- a/board/cobra5272/cobra5272.c
+++ b/board/cobra5272/cobra5272.c
@@ -4,7 +4,7 @@ 
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
diff --git a/board/cobra5272/flash.c b/board/cobra5272/flash.c
index 8416af163ad1..157b71da85e8 100644
--- a/board/cobra5272/flash.c
+++ b/board/cobra5272/flash.c
@@ -4,13 +4,17 @@ 
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#include <common.h>
+#include <config.h>
 #include <console.h>
 #include <cpu_func.h>
 #include <flash.h>
 #include <irq_func.h>
+#include <stdio.h>
+#include <time.h>
 #include <uuid.h>
+#include <vsprintf.h>
 #include <linux/delay.h>
+#include <linux/string.h>
 
 #define PHYS_FLASH_1 CFG_SYS_FLASH_BASE
 #define FLASH_BANK_SIZE 0x200000