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

Stefan Bosch stefan_b at posteo.net
Wed May 8 19:39:22 CEST 2024



On 01.05.24 04: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>
Reviewed-by: Stefan Bosch <stefan_b at posteo.net>
Tested-by: Stefan Bosch <stefan_b at posteo.net>

Looks good, tested on FriendlyElec-Board NanoPC-T2.

Thanks a lot!

> ---
> Cc: Stefan Bosch <stefan_b at posteo.net>
> Cc: Caleb Connolly <caleb.connolly at linaro.org>
> Cc: Eugen Hristev <eugen.hristev at collabora.com>
> Cc: Igor Prusov <ivprusov at salutedevices.com>
> Cc: Patrice Chotard <patrice.chotard at foss.st.com>
> ---
>   board/friendlyarm/nanopi2/board.c   | 1 -
>   board/friendlyarm/nanopi2/hwrev.c   | 1 -
>   board/friendlyarm/nanopi2/lcds.c    | 1 -
>   board/friendlyarm/nanopi2/onewire.c | 1 -
>   4 files changed, 4 deletions(-)
> 
> diff --git a/board/friendlyarm/nanopi2/board.c b/board/friendlyarm/nanopi2/board.c
> index 393c5a447d6f..c8cbc5a15fa8 100644
> --- a/board/friendlyarm/nanopi2/board.c
> +++ b/board/friendlyarm/nanopi2/board.c
> @@ -5,7 +5,6 @@
>    */
>   
>   #include <config.h>
> -#include <common.h>
>   #include <command.h>
>   #include <fdt_support.h>
>   #include <log.h>
> diff --git a/board/friendlyarm/nanopi2/hwrev.c b/board/friendlyarm/nanopi2/hwrev.c
> index 585e08c944f9..cd9c2414a320 100644
> --- a/board/friendlyarm/nanopi2/hwrev.c
> +++ b/board/friendlyarm/nanopi2/hwrev.c
> @@ -5,7 +5,6 @@
>    */
>   
>   #include <config.h>
> -#include <common.h>
>   #include <i2c.h>
>   #include <asm/io.h>
>   
> diff --git a/board/friendlyarm/nanopi2/lcds.c b/board/friendlyarm/nanopi2/lcds.c
> index 7303e53af925..b37367300cf0 100644
> --- a/board/friendlyarm/nanopi2/lcds.c
> +++ b/board/friendlyarm/nanopi2/lcds.c
> @@ -4,7 +4,6 @@
>    */
>   
>   #include <config.h>
> -#include <common.h>
>   #include <errno.h>
>   #include <fdtdec.h>
>   #include <fdt_support.h>
> diff --git a/board/friendlyarm/nanopi2/onewire.c b/board/friendlyarm/nanopi2/onewire.c
> index 4f0b1e33c2df..31cc871330ca 100644
> --- a/board/friendlyarm/nanopi2/onewire.c
> +++ b/board/friendlyarm/nanopi2/onewire.c
> @@ -5,7 +5,6 @@
>    */
>   
>   #include <config.h>
> -#include <common.h>
>   #include <errno.h>
>   #include <asm/io.h>
>   #include <asm/arch/clk.h>


More information about the U-Boot mailing list