diff options
author | Thomas Gleixner <tglx@cruncher.tec.linutronix.de> | 2006-05-23 17:48:57 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@cruncher.tec.linutronix.de> | 2006-05-23 17:48:57 -0400 |
commit | d470a97c70a43ffafd6e728c913254b6d6fd1219 (patch) | |
tree | e440261dc50c345126901390b9ffa6e0c5cb7222 /drivers/mtd | |
parent | cad74f2c380411ae7bee997f3ba18834cfe313a2 (diff) |
[MTD] NAND LED support cleanup
Move the define out of the middle of the code and add an
appropriate comment.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/nand_base.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 4f387c8388d7..649c238837bb 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c | |||
@@ -164,6 +164,12 @@ static int nand_verify_pages(struct mtd_info *mtd, struct nand_chip *this, | |||
164 | static int nand_get_device(struct nand_chip *this, struct mtd_info *mtd, | 164 | static int nand_get_device(struct nand_chip *this, struct mtd_info *mtd, |
165 | int new_state); | 165 | int new_state); |
166 | 166 | ||
167 | /* | ||
168 | * For devices which display every fart in the system on a seperate LED. Is | ||
169 | * compiled away when LED support is disabled. | ||
170 | */ | ||
171 | DEFINE_LED_TRIGGER(nand_led_trigger); | ||
172 | |||
167 | /** | 173 | /** |
168 | * nand_release_device - [GENERIC] release chip | 174 | * nand_release_device - [GENERIC] release chip |
169 | * @mtd: MTD device structure | 175 | * @mtd: MTD device structure |
@@ -476,8 +482,6 @@ static int nand_block_checkbad(struct mtd_info *mtd, loff_t ofs, int getchip, | |||
476 | return nand_isbad_bbt(mtd, ofs, allowbbt); | 482 | return nand_isbad_bbt(mtd, ofs, allowbbt); |
477 | } | 483 | } |
478 | 484 | ||
479 | DEFINE_LED_TRIGGER(nand_led_trigger); | ||
480 | |||
481 | /* | 485 | /* |
482 | * Wait for the ready pin, after a command | 486 | * Wait for the ready pin, after a command |
483 | * The timeout is catched later. | 487 | * The timeout is catched later. |