summaryrefslogtreecommitdiff
path: root/drivers/mtd/onenand
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2012-04-19 01:14:17 +0000
committerWolfgang Denk <wd@denx.de>2012-04-21 16:45:35 +0200
commit1432c763f8d90f468217a6eab6a6b82c262dca3e (patch)
treec3e183edcf0cd2b67ec6a01ffa4a22fc128ca74a /drivers/mtd/onenand
parentfb14b6b2f680363678b4e6a75eb9f3f0d79111fa (diff)
downloadu-boot-imx-1432c763f8d90f468217a6eab6a6b82c262dca3e.zip
u-boot-imx-1432c763f8d90f468217a6eab6a6b82c262dca3e.tar.gz
u-boot-imx-1432c763f8d90f468217a6eab6a6b82c262dca3e.tar.bz2
GCC4.6: Squash warnings in onenand_base.c
Fix gcc 4.6 build warnings: onenand_base.c: In function 'onenand_probe': onenand_base.c:2577:6: warning: variable 'maf_id' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Lukasz Majewski <l.majewski@samsung.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> Tested-by: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'drivers/mtd/onenand')
-rw-r--r--drivers/mtd/onenand/onenand_base.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index 480ae7a..1d0f196 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -2574,7 +2574,7 @@ static int onenand_chip_probe(struct mtd_info *mtd)
int onenand_probe(struct mtd_info *mtd)
{
struct onenand_chip *this = mtd->priv;
- int maf_id, dev_id, ver_id;
+ int dev_id, ver_id;
int density;
int ret;
@@ -2582,8 +2582,7 @@ int onenand_probe(struct mtd_info *mtd)
if (ret)
return ret;
- /* Read manufacturer and device IDs from Register */
- maf_id = this->read_word(this->base + ONENAND_REG_MANUFACTURER_ID);
+ /* Read device IDs from Register */
dev_id = this->read_word(this->base + ONENAND_REG_DEVICE_ID);
ver_id = this->read_word(this->base + ONENAND_REG_VERSION_ID);
this->technology = this->read_word(this->base + ONENAND_REG_TECHNOLOGY);