diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mtd/nand.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 8dd6e01f45c0..f6a2d5e7313c 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h | |||
| @@ -460,6 +460,13 @@ struct nand_hw_control { | |||
| 460 | wait_queue_head_t wq; | 460 | wait_queue_head_t wq; |
| 461 | }; | 461 | }; |
| 462 | 462 | ||
| 463 | static inline void nand_hw_control_init(struct nand_hw_control *nfc) | ||
| 464 | { | ||
| 465 | nfc->active = NULL; | ||
| 466 | spin_lock_init(&nfc->lock); | ||
| 467 | init_waitqueue_head(&nfc->wq); | ||
| 468 | } | ||
| 469 | |||
| 463 | /** | 470 | /** |
| 464 | * struct nand_ecc_ctrl - Control structure for ECC | 471 | * struct nand_ecc_ctrl - Control structure for ECC |
| 465 | * @mode: ECC mode | 472 | * @mode: ECC mode |
