diff options
author | Macpaul Lin <macpaul@andestech.com> | 2011-05-01 22:17:29 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-05-12 23:43:27 +0200 |
commit | f194f6ba5bebb13d2f3f90513d224b95c86ddc5f (patch) | |
tree | 00485017c43ca43e05c2784509056251a11463c3 /drivers/mtd | |
parent | 4bed7265f2ce2e986ab11f0c9382a5ac2899d630 (diff) | |
download | u-boot-imx-f194f6ba5bebb13d2f3f90513d224b95c86ddc5f.zip u-boot-imx-f194f6ba5bebb13d2f3f90513d224b95c86ddc5f.tar.gz u-boot-imx-f194f6ba5bebb13d2f3f90513d224b95c86ddc5f.tar.bz2 |
ftsmc020: fix relocation
Avoid relocation problem by fix global declaration.
Signed-off-by: Macpaul Lin <macpaul@andestech.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/ftsmc020.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/mtd/ftsmc020.c b/drivers/mtd/ftsmc020.c index b027685..ddeb3a4 100644 --- a/drivers/mtd/ftsmc020.c +++ b/drivers/mtd/ftsmc020.c @@ -27,12 +27,10 @@ struct ftsmc020_config { unsigned int timing; }; -static struct ftsmc020_config config[] = CONFIG_SYS_FTSMC020_CONFIGS; - -static struct ftsmc020 *smc = (struct ftsmc020 *)CONFIG_FTSMC020_BASE; - static void ftsmc020_setup_bank(unsigned int bank, struct ftsmc020_config *cfg) { + struct ftsmc020 *smc = (struct ftsmc020 *)CONFIG_FTSMC020_BASE; + if (bank > 3) { printf("bank # %u invalid\n", bank); return; @@ -44,6 +42,7 @@ static void ftsmc020_setup_bank(unsigned int bank, struct ftsmc020_config *cfg) void ftsmc020_init(void) { + struct ftsmc020_config config[] = CONFIG_SYS_FTSMC020_CONFIGS; int i; for (i = 0; i < ARRAY_SIZE(config); i++) |