aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/nand.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 0e35375ea795..7f2d69356554 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -577,8 +577,13 @@ struct platform_nand_chip {
577 void *priv; 577 void *priv;
578}; 578};
579 579
580/* Keep gcc happy */
581struct platform_device;
582
580/** 583/**
581 * struct platform_nand_ctrl - controller level device structure 584 * struct platform_nand_ctrl - controller level device structure
585 * @probe: platform specific function to probe/setup hardware
586 * @remove: platform specific function to remove/teardown hardware
582 * @hwcontrol: platform specific hardware control structure 587 * @hwcontrol: platform specific hardware control structure
583 * @dev_ready: platform specific function to read ready/busy pin 588 * @dev_ready: platform specific function to read ready/busy pin
584 * @select_chip: platform specific chip select function 589 * @select_chip: platform specific chip select function
@@ -591,6 +596,8 @@ struct platform_nand_chip {
591 * All fields are optional and depend on the hardware driver requirements 596 * All fields are optional and depend on the hardware driver requirements
592 */ 597 */
593struct platform_nand_ctrl { 598struct platform_nand_ctrl {
599 int (*probe)(struct platform_device *pdev);
600 void (*remove)(struct platform_device *pdev);
594 void (*hwcontrol)(struct mtd_info *mtd, int cmd); 601 void (*hwcontrol)(struct mtd_info *mtd, int cmd);
595 int (*dev_ready)(struct mtd_info *mtd); 602 int (*dev_ready)(struct mtd_info *mtd);
596 void (*select_chip)(struct mtd_info *mtd, int chip); 603 void (*select_chip)(struct mtd_info *mtd, int chip);