mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] MIPS: dlink-dir-320: remove useless board file
@ 2020-05-05 12:36 Antony Pavlov
  2020-05-07 13:07 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Antony Pavlov @ 2020-05-05 12:36 UTC (permalink / raw)
  To: barebox

The board file calls only barebox_set_hostname().
Since we can extract host name from devicetree,
we can drop board file.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
 arch/mips/boards/dlink-dir-320/Makefile |  1 -
 arch/mips/boards/dlink-dir-320/board.c  | 15 ---------------
 2 files changed, 16 deletions(-)

diff --git a/arch/mips/boards/dlink-dir-320/Makefile b/arch/mips/boards/dlink-dir-320/Makefile
index 01c7a259e9..b08c4a93ca 100644
--- a/arch/mips/boards/dlink-dir-320/Makefile
+++ b/arch/mips/boards/dlink-dir-320/Makefile
@@ -1,2 +1 @@
-obj-y += board.o
 lwl-y += lowlevel.o
diff --git a/arch/mips/boards/dlink-dir-320/board.c b/arch/mips/boards/dlink-dir-320/board.c
deleted file mode 100644
index b75812cefe..0000000000
--- a/arch/mips/boards/dlink-dir-320/board.c
+++ /dev/null
@@ -1,15 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0-only
-/*
- * Copyright (C) 2011, 2014 Antony Pavlov <antonynpavlov@gmail.com>
- */
-
-#include <common.h>
-#include <init.h>
-
-static int dir320_console_init(void)
-{
-	barebox_set_hostname("dir320");
-
-	return 0;
-}
-console_initcall(dir320_console_init);
-- 
2.25.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] MIPS: dlink-dir-320: remove useless board file
  2020-05-05 12:36 [PATCH] MIPS: dlink-dir-320: remove useless board file Antony Pavlov
@ 2020-05-07 13:07 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2020-05-07 13:07 UTC (permalink / raw)
  To: Antony Pavlov; +Cc: barebox

On Tue, May 05, 2020 at 03:36:10PM +0300, Antony Pavlov wrote:
> The board file calls only barebox_set_hostname().
> Since we can extract host name from devicetree,
> we can drop board file.
> 
> Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
> ---
>  arch/mips/boards/dlink-dir-320/Makefile |  1 -
>  arch/mips/boards/dlink-dir-320/board.c  | 15 ---------------
>  2 files changed, 16 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/arch/mips/boards/dlink-dir-320/Makefile b/arch/mips/boards/dlink-dir-320/Makefile
> index 01c7a259e9..b08c4a93ca 100644
> --- a/arch/mips/boards/dlink-dir-320/Makefile
> +++ b/arch/mips/boards/dlink-dir-320/Makefile
> @@ -1,2 +1 @@
> -obj-y += board.o
>  lwl-y += lowlevel.o
> diff --git a/arch/mips/boards/dlink-dir-320/board.c b/arch/mips/boards/dlink-dir-320/board.c
> deleted file mode 100644
> index b75812cefe..0000000000
> --- a/arch/mips/boards/dlink-dir-320/board.c
> +++ /dev/null
> @@ -1,15 +0,0 @@
> -// SPDX-License-Identifier: GPL-2.0-only
> -/*
> - * Copyright (C) 2011, 2014 Antony Pavlov <antonynpavlov@gmail.com>
> - */
> -
> -#include <common.h>
> -#include <init.h>
> -
> -static int dir320_console_init(void)
> -{
> -	barebox_set_hostname("dir320");
> -
> -	return 0;
> -}
> -console_initcall(dir320_console_init);
> -- 
> 2.25.0
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-07 13:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-05 12:36 [PATCH] MIPS: dlink-dir-320: remove useless board file Antony Pavlov
2020-05-07 13:07 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox