diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2011-06-06 10:04:16 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-11 08:02:04 -0400 |
commit | 0dc8626a17ab8dea9f1e34c7a5d667f5331b0ddc (patch) | |
tree | ce7eee3bec3b0c4a58309ceadc15e8ba25943eb2 | |
parent | 78dd9e3500873edd6005a41f8ba178eacbff64c5 (diff) |
mtd: plat-nand: drop unused fields from platform_nand_data
Drop now unused set_parts from struct platform_nand_data. Also, while we are
at it, drop long unused priv field from platform_nand_data.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r-- | drivers/mtd/nand/plat_nand.c | 2 | ||||
-rw-r--r-- | include/linux/mtd/nand.h | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/drivers/mtd/nand/plat_nand.c b/drivers/mtd/nand/plat_nand.c index ccdb16ec8143..746a723b4933 100644 --- a/drivers/mtd/nand/plat_nand.c +++ b/drivers/mtd/nand/plat_nand.c | |||
@@ -109,8 +109,6 @@ static int __devinit plat_nand_probe(struct platform_device *pdev) | |||
109 | return 0; | 109 | return 0; |
110 | } | 110 | } |
111 | } | 111 | } |
112 | if (pdata->chip.set_parts) | ||
113 | pdata->chip.set_parts(data->mtd.size, &pdata->chip); | ||
114 | if (pdata->chip.partitions) { | 112 | if (pdata->chip.partitions) { |
115 | data->parts = pdata->chip.partitions; | 113 | data->parts = pdata->chip.partitions; |
116 | err = mtd_device_register(&data->mtd, data->parts, | 114 | err = mtd_device_register(&data->mtd, data->parts, |
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 4a43ffc535c9..0f239e714219 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h | |||
@@ -619,8 +619,6 @@ struct platform_nand_chip { | |||
619 | unsigned int options; | 619 | unsigned int options; |
620 | unsigned int bbt_options; | 620 | unsigned int bbt_options; |
621 | const char **part_probe_types; | 621 | const char **part_probe_types; |
622 | void (*set_parts)(uint64_t size, struct platform_nand_chip *chip); | ||
623 | void *priv; | ||
624 | }; | 622 | }; |
625 | 623 | ||
626 | /* Keep gcc happy */ | 624 | /* Keep gcc happy */ |