[MTD] NAND LED support cleanup
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Wed May 24 05:59:07 EDT 2006
Commit: d470a97c70a43ffafd6e728c913254b6d6fd1219
Parent: cad74f2c380411ae7bee997f3ba18834cfe313a2
Author: Thomas Gleixner <tglx at cruncher.tec.linutronix.de>
AuthorDate: Tue May 23 23:48:57 2006 +0200
Commit: Thomas Gleixner <tglx at cruncher.tec.linutronix.de>
CommitDate: Tue May 23 23:48:57 2006 +0200
[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 at linutronix.de>
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 4f387c8..649c238 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -164,6 +164,12 @@ #endif
static int nand_get_device(struct nand_chip *this, struct mtd_info *mtd,
int new_state);
+/*
+ * For devices which display every fart in the system on a seperate LED. Is
+ * compiled away when LED support is disabled.
+ */
+DEFINE_LED_TRIGGER(nand_led_trigger);
+
/**
* nand_release_device - [GENERIC] release chip
* @mtd: MTD device structure
@@ -476,8 +482,6 @@ static int nand_block_checkbad(struct mt
return nand_isbad_bbt(mtd, ofs, allowbbt);
}
-DEFINE_LED_TRIGGER(nand_led_trigger);
-
/*
* Wait for the ready pin, after a command
* The timeout is catched later.
More information about the linux-mtd-cvs
mailing list