From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 04/10] ARM: tx28: provide header file with function prototype
Date: Tue, 15 Sep 2020 14:25:33 +0200 [thread overview]
Message-ID: <20200915122539.18744-5-s.hauer@pengutronix.de> (raw)
In-Reply-To: <20200915122539.18744-1-s.hauer@pengutronix.de>
base_board_init() doesn't have a prototype anywhere, add a header file
for it.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/arm/boards/karo-tx28/tx28-stk5.c | 2 ++
arch/arm/boards/karo-tx28/tx28.c | 4 ++--
arch/arm/boards/karo-tx28/tx28.h | 3 +++
3 files changed, 7 insertions(+), 2 deletions(-)
create mode 100644 arch/arm/boards/karo-tx28/tx28.h
diff --git a/arch/arm/boards/karo-tx28/tx28-stk5.c b/arch/arm/boards/karo-tx28/tx28-stk5.c
index c9b947953b..56211d7a3a 100644
--- a/arch/arm/boards/karo-tx28/tx28-stk5.c
+++ b/arch/arm/boards/karo-tx28/tx28-stk5.c
@@ -22,6 +22,8 @@
#include <mach/iomux.h>
#include <generated/mach-types.h>
+#include "tx28.h"
+
static struct mxs_mci_platform_data mci_pdata = {
.caps = MMC_CAP_4_BIT_DATA,
.voltages = MMC_VDD_32_33 | MMC_VDD_33_34, /* fixed to 3.3 V */
diff --git a/arch/arm/boards/karo-tx28/tx28.c b/arch/arm/boards/karo-tx28/tx28.c
index 52f74b5f36..8bd2252410 100644
--- a/arch/arm/boards/karo-tx28/tx28.c
+++ b/arch/arm/boards/karo-tx28/tx28.c
@@ -15,6 +15,8 @@
#include <mach/iomux.h>
#include <asm/mmu.h>
+#include "tx28.h"
+
/* setup the CPU card internal signals */
static const uint32_t tx28_pad_setup[] = {
/* NAND interface */
@@ -61,8 +63,6 @@ static const uint32_t tx28_pad_setup[] = {
};
-extern void base_board_init(void);
-
static int tx28_devices_init(void)
{
int i;
diff --git a/arch/arm/boards/karo-tx28/tx28.h b/arch/arm/boards/karo-tx28/tx28.h
new file mode 100644
index 0000000000..5fb1e13412
--- /dev/null
+++ b/arch/arm/boards/karo-tx28/tx28.h
@@ -0,0 +1,3 @@
+
+void base_board_init(void);
+
--
2.28.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2020-09-15 12:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-15 12:25 [PATCH 00/10] Compiler warning fixes Sascha Hauer
2020-09-15 12:25 ` [PATCH 01/10] ARM: dts: beaglebone: Remove unnecessary tps65217.dtsi Sascha Hauer
2020-09-15 12:25 ` [PATCH 02/10] arm: Add prototypes for functions called from assembly Sascha Hauer
2020-09-15 12:25 ` [PATCH 03/10] openrisc: " Sascha Hauer
2020-09-15 12:25 ` Sascha Hauer [this message]
2020-09-15 12:25 ` [PATCH 05/10] ARM: tegra20-colibri-iris: drop regulators node Sascha Hauer
2020-09-15 12:25 ` [PATCH 06/10] ARM: versatile: Remove unused function Sascha Hauer
2020-09-15 12:25 ` [PATCH 07/10] openrisc: Add missing includes Sascha Hauer
2020-09-15 12:25 ` [PATCH 08/10] openrisc: Make locally used functions static Sascha Hauer
2020-09-15 12:25 ` [PATCH 09/10] scripts: tegra: Add missing include Sascha Hauer
2020-09-15 12:25 ` [PATCH 10/10] ARM: zync: Fix include path 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=20200915122539.18744-5-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--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