|
@@ -2574,7 +2574,7 @@ static int onenand_chip_probe(struct mtd_info *mtd)
|
|
int onenand_probe(struct mtd_info *mtd)
|
|
int onenand_probe(struct mtd_info *mtd)
|
|
{
|
|
{
|
|
struct onenand_chip *this = mtd->priv;
|
|
struct onenand_chip *this = mtd->priv;
|
|
- int maf_id, dev_id, ver_id;
|
|
|
|
|
|
+ int dev_id, ver_id;
|
|
int density;
|
|
int density;
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
@@ -2582,8 +2582,7 @@ int onenand_probe(struct mtd_info *mtd)
|
|
if (ret)
|
|
if (ret)
|
|
return 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);
|
|
dev_id = this->read_word(this->base + ONENAND_REG_DEVICE_ID);
|
|
ver_id = this->read_word(this->base + ONENAND_REG_VERSION_ID);
|
|
ver_id = this->read_word(this->base + ONENAND_REG_VERSION_ID);
|
|
this->technology = this->read_word(this->base + ONENAND_REG_TECHNOLOGY);
|
|
this->technology = this->read_word(this->base + ONENAND_REG_TECHNOLOGY);
|