NOR/DRIVERS: review scope of functions

Add "static" qualifier to private functions.
Remove unused "extern" in src/ecosboard.c

Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
Antonio Borneo 2010-04-10 19:38:15 +08:00
parent 61c0635991
commit 402d3292bb
2 changed files with 1 additions and 4 deletions

View File

@ -99,9 +99,6 @@ static bool writeLog = true;
char hwaddr[512];
extern struct flash_driver *flash_drivers[];
#ifdef CYGPKG_PROFILE_GPROF
#include <cyg/profile/profile.h>

View File

@ -44,7 +44,7 @@ extern struct flash_driver faux_flash;
* The list of built-in flash drivers.
* @todo Make this dynamically extendable with loadable modules.
*/
struct flash_driver *flash_drivers[] = {
static struct flash_driver *flash_drivers[] = {
&lpc2000_flash,
&lpc288x_flash,
&lpc2900_flash,