[MTD] NAND Consolidate references and add back default name setting
authorThomas Gleixner <tglx@cruncher.tec.linutronix.de>
Fri, 26 May 2006 23:02:13 +0000 (01:02 +0200)
committerThomas Gleixner <tglx@cruncher.tec.linutronix.de>
Fri, 26 May 2006 23:02:13 +0000 (01:02 +0200)
commitba0251fe87ea560eb377917e06ba0b5b9ab89094
tree9f01452bb883ddcbd2ef1047638f9aeefeb4c89f
parentcca3b837bbb4c984165f9f9c7c06846bc0425791
[MTD] NAND Consolidate references and add back default name setting

We have a type pointer. Make use of it instead of the error prone nand_ids[i]
reference.

The NAND driver used to set default name settings from the chip ID
string for the device. The feature got lost during the rework. Add it back.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/mtd/nand/nand_base.c