mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Antony Pavlov <antonynpavlov@gmail.com>
To: barebox@lists.infradead.org
Subject: [PATCH] MIPS: dlink-dir-320: remove useless board file
Date: Tue,  5 May 2020 15:36:10 +0300	[thread overview]
Message-ID: <20200505123610.11307-1-antonynpavlov@gmail.com> (raw)

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

             reply	other threads:[~2020-05-05 12:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-05 12:36 Antony Pavlov [this message]
2020-05-07 13:07 ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200505123610.11307-1-antonynpavlov@gmail.com \
    --to=antonynpavlov@gmail.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox