Skip to contentSkip to conversation

MIPS: dlink-dir-320: remove useless board file

PATCH Applied Antony Pavlov 2 participants 2 messages May 5, 2020 – May 7, 2020 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: dlink-dir-320: remove useless board file

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

---
 arch/mips/boards/dlink-dir-320/Makefile |  1 -
 arch/mips/boards/dlink-dir-320/board.c  | 15 ---------------
 2 files changed, 16 deletions(-)
arch/mips/boards/dlink-dir-320/Makefile +0 -1
index 01c7a259e9..b08c4a93ca 100644
@@ -1,2 +1 @@
-obj-y += board.o
 lwl-y += lowlevel.o
arch/mips/boards/dlink-dir-320/board.c deleted +0 -15
deleted file mode 100644
index b75812cefe..0000000000
@@ -1,15 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0-only
-/*
- * Copyright (C) 2011, 2014 Antony Pavlov <[email protected]>
- */
-
-#include <common.h>
-#include <init.h>
-
-static int dir320_console_init(void)
-{
-	barebox_set_hostname("dir320");
-
-	return 0;
-}
-console_initcall(dir320_console_init);
Signature · 7 lines
2.25.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 9 lines · Antony Pavlov

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

---
 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

Quoted 33 lines
arch/mips/boards/dlink-dir-320/Makefile +0 -1
index 01c7a259e9..b08c4a93ca 100644
@@ -1,2 +1 @@
-obj-y += board.o
 lwl-y += lowlevel.o
arch/mips/boards/dlink-dir-320/board.c deleted +0 -15
deleted file mode 100644
index b75812cefe..0000000000
@@ -1,15 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0-only
-/*
- * Copyright (C) 2011, 2014 Antony Pavlov <[email protected]>
- */
-
-#include <common.h>
-#include <init.h>
-
-static int dir320_console_init(void)
-{
-	barebox_set_hostname("dir320");
-
-	return 0;
-}
-console_initcall(dir320_console_init);
Signature · 1 line
2.25.0
Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox