diff options
-rw-r--r-- | arch/arm/plat-s3c/include/plat/nand.h | 2 | ||||
-rw-r--r-- | drivers/mtd/nand/s3c2410.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/plat-s3c/include/plat/nand.h b/arch/arm/plat-s3c/include/plat/nand.h index 18f958801e64..afd1673ad0ec 100644 --- a/arch/arm/plat-s3c/include/plat/nand.h +++ b/arch/arm/plat-s3c/include/plat/nand.h | |||
@@ -17,6 +17,7 @@ | |||
17 | * Setting this flag will allow the kernel to | 17 | * Setting this flag will allow the kernel to |
18 | * look for it at boot time and also skip the NAND | 18 | * look for it at boot time and also skip the NAND |
19 | * scan. | 19 | * scan. |
20 | * @options: Default value to set into 'struct nand_chip' options. | ||
20 | * @nr_chips: Number of chips in this set | 21 | * @nr_chips: Number of chips in this set |
21 | * @nr_partitions: Number of partitions pointed to by @partitions | 22 | * @nr_partitions: Number of partitions pointed to by @partitions |
22 | * @name: Name of set (optional) | 23 | * @name: Name of set (optional) |
@@ -31,6 +32,7 @@ struct s3c2410_nand_set { | |||
31 | unsigned int disable_ecc:1; | 32 | unsigned int disable_ecc:1; |
32 | unsigned int flash_bbt:1; | 33 | unsigned int flash_bbt:1; |
33 | 34 | ||
35 | unsigned int options; | ||
34 | int nr_chips; | 36 | int nr_chips; |
35 | int nr_partitions; | 37 | int nr_partitions; |
36 | char *name; | 38 | char *name; |
diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c index 11dc7e69c4fb..6e88bd3c02f5 100644 --- a/drivers/mtd/nand/s3c2410.c +++ b/drivers/mtd/nand/s3c2410.c | |||
@@ -774,7 +774,7 @@ static void s3c2410_nand_init_chip(struct s3c2410_nand_info *info, | |||
774 | chip->select_chip = s3c2410_nand_select_chip; | 774 | chip->select_chip = s3c2410_nand_select_chip; |
775 | chip->chip_delay = 50; | 775 | chip->chip_delay = 50; |
776 | chip->priv = nmtd; | 776 | chip->priv = nmtd; |
777 | chip->options = 0; | 777 | chip->options = set->options; |
778 | chip->controller = &info->controller; | 778 | chip->controller = &info->controller; |
779 | 779 | ||
780 | switch (info->cpu_type) { | 780 | switch (info->cpu_type) { |