mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 20:18:54 -04:00
MX25: tx25: Avoid the usage of extern in C file
Avoid the usage of extern in C file as pointed out by checkpatch. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
This commit is contained in:
parent
b6e6ebbf3d
commit
e6d9b9785c
29
arch/arm/include/asm/arch-mx25/sys_proto.h
Normal file
29
arch/arm/include/asm/arch-mx25/sys_proto.h
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
/*
|
||||||
|
* (C) Copyright 2009
|
||||||
|
* Stefano Babic, DENX Software Engineering, sbabic@denx.de.
|
||||||
|
*
|
||||||
|
* See file CREDITS for list of people who contributed to this
|
||||||
|
* project.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU General Public License as
|
||||||
|
* published by the Free Software Foundation; either version 2 of
|
||||||
|
* the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
* MA 02111-1307 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _SYS_PROTO_H_
|
||||||
|
#define _SYS_PROTO_H_
|
||||||
|
|
||||||
|
void mx25_uart1_init_pins(void);
|
||||||
|
|
||||||
|
#endif
|
@ -29,6 +29,7 @@
|
|||||||
#include <asm/arch/imx-regs.h>
|
#include <asm/arch/imx-regs.h>
|
||||||
#include <asm/arch/imx25-pinmux.h>
|
#include <asm/arch/imx25-pinmux.h>
|
||||||
#include <asm/gpio.h>
|
#include <asm/gpio.h>
|
||||||
|
#include <asm/arch/sys_proto.h>
|
||||||
|
|
||||||
static void mdelay(int n)
|
static void mdelay(int n)
|
||||||
{
|
{
|
||||||
@ -142,8 +143,6 @@ void tx25_fec_init(void)
|
|||||||
int board_init()
|
int board_init()
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_MXC_UART
|
#ifdef CONFIG_MXC_UART
|
||||||
extern void mx25_uart1_init_pins(void);
|
|
||||||
|
|
||||||
mx25_uart1_init_pins();
|
mx25_uart1_init_pins();
|
||||||
#endif
|
#endif
|
||||||
/* board id for linux */
|
/* board id for linux */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user