[PATCH 014/149] board: alliedtelesis: Remove <common.h> and add needed includes

Chris Packham Chris.Packham at alliedtelesis.co.nz
Wed May 1 04:47:56 CEST 2024


On 1/05/24 14:41, 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 at konsulko.com>
> ---
> Cc: Chris Packham <chris.packham at alliedtelesis.co.nz>

Reviewed-by: Chris Packham <chris.packham at alliedtelesis.co.nz>

> ---
>   board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c     | 1 -
>   board/alliedtelesis/SBx81LIFXCAT/sbx81lifxcat.c | 1 -
>   board/alliedtelesis/common/gpio_hog.c           | 1 -
>   board/alliedtelesis/x240/x240.c                 | 2 +-
>   board/alliedtelesis/x530/x530.c                 | 2 +-
>   5 files changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c b/board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c
> index e0a7f3fa89f0..5e6d6c6234fb 100644
> --- a/board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c
> +++ b/board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c
> @@ -4,7 +4,6 @@
>    * Allied Telesis <http://scanmail.trustwave.com/?c=20988&d=2ayx5kNiqyP-Zhu-6cGRswhIuvU8IKOw7TN5W7swfg&u=http%3a%2f%2fwww%2ealliedtelesis%2ecom>
>    */
>   
> -#include <common.h>
>   #include <init.h>
>   #include <net.h>
>   #include <asm/global_data.h>
> diff --git a/board/alliedtelesis/SBx81LIFXCAT/sbx81lifxcat.c b/board/alliedtelesis/SBx81LIFXCAT/sbx81lifxcat.c
> index 52b8eba92fc1..f30821c17963 100644
> --- a/board/alliedtelesis/SBx81LIFXCAT/sbx81lifxcat.c
> +++ b/board/alliedtelesis/SBx81LIFXCAT/sbx81lifxcat.c
> @@ -4,7 +4,6 @@
>    * Allied Telesis <http://scanmail.trustwave.com/?c=20988&d=2ayx5kNiqyP-Zhu-6cGRswhIuvU8IKOw7TN5W7swfg&u=http%3a%2f%2fwww%2ealliedtelesis%2ecom>
>    */
>   
> -#include <common.h>
>   #include <init.h>
>   #include <miiphy.h>
>   #include <net.h>
> diff --git a/board/alliedtelesis/common/gpio_hog.c b/board/alliedtelesis/common/gpio_hog.c
> index 4aecf7e2cef7..7da70fb4f7d6 100644
> --- a/board/alliedtelesis/common/gpio_hog.c
> +++ b/board/alliedtelesis/common/gpio_hog.c
> @@ -3,7 +3,6 @@
>    * Copyright (C) 2018 Allied Telesis Labs
>    */
>   
> -#include <common.h>
>   #include <dm.h>
>   #include <asm/global_data.h>
>   #include <asm/gpio.h>
> diff --git a/board/alliedtelesis/x240/x240.c b/board/alliedtelesis/x240/x240.c
> index 0c4f8e03b859..c1b7cc3b613c 100644
> --- a/board/alliedtelesis/x240/x240.c
> +++ b/board/alliedtelesis/x240/x240.c
> @@ -1,6 +1,6 @@
>   // SPDX-License-Identifier: GPL-2.0+
>   
> -#include <common.h>
> +#include <config.h>
>   #include <asm/global_data.h>
>   
>   DECLARE_GLOBAL_DATA_PTR;
> diff --git a/board/alliedtelesis/x530/x530.c b/board/alliedtelesis/x530/x530.c
> index 80ad62c2c665..65e6d48db0a6 100644
> --- a/board/alliedtelesis/x530/x530.c
> +++ b/board/alliedtelesis/x530/x530.c
> @@ -3,7 +3,7 @@
>    * Copyright (C) 2017 Allied Telesis Labs
>    */
>   
> -#include <common.h>
> +#include <config.h>
>   #include <command.h>
>   #include <dm.h>
>   #include <env.h>


More information about the U-Boot mailing list