From: Daniel Schwierzeck Date: Sun, 11 Dec 2011 17:39:37 +0100 Subject: [U-Boot] [PATCH v2] MIPS: tb0229: fix compile errors In-Reply-To: <1323442731-12017-1-git-send-email-daniel.schwierzeck@googlemail.com> References: <1323442731-12017-1-git-send-email-daniel.schwierzeck@googlemail.com> Message-ID: <1323621577-13010-1-git-send-email-daniel.schwierzeck@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This board breaks MAKEALL -a mips due to compile errors. This patch fixes only the parts causing the errors to get MAKEALL working. Signed-off-by: Daniel Schwierzeck --- Changes for v2: - removed fixes for coding style cleanup and compiler warnings Note: minimal patch to get MAKEALL -a mips working. This board is broken and has no maintainer so it should be dropped. board/tb0229/flash.c | 1 - board/tb0229/tb0229.c | 1 + board/tb0229/vr4131-pci.c | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/board/tb0229/flash.c b/board/tb0229/flash.c index 75d7769..4cb5968 100644 --- a/board/tb0229/flash.c +++ b/board/tb0229/flash.c @@ -24,7 +24,6 @@ */ #include -#include #include flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */ diff --git a/board/tb0229/tb0229.c b/board/tb0229/tb0229.c index d3f05b2..8e374a1 100644 --- a/board/tb0229/tb0229.c +++ b/board/tb0229/tb0229.c @@ -11,6 +11,7 @@ #include #include +#include #include #include #include diff --git a/board/tb0229/vr4131-pci.c b/board/tb0229/vr4131-pci.c index 6ff4293..e6fff9d 100644 --- a/board/tb0229/vr4131-pci.c +++ b/board/tb0229/vr4131-pci.c @@ -184,7 +184,7 @@ static int vr4131_pci_write_config_dword (u32 hose, u32 dev, u32 reg, u32 val) * Initialize VR4131 PCIU */ -vr4131_pciu_init () +static void vr4131_pciu_init(void) { /* PCI clock */ *VR4131_PCICLKSELREG = 0x00000002; -- 1.7.8