mtd: plat-nand: drop unused fields from platform_nand_data
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Mon, 6 Jun 2011 14:04:16 +0000 (18:04 +0400)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Sun, 11 Sep 2011 12:02:04 +0000 (15:02 +0300)
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>
drivers/mtd/nand/plat_nand.c
include/linux/mtd/nand.h

index ccdb16ec81430028eff5d6ba363d5a317d9fba5a..746a723b49332c2ccf4ba5d8c46dd486dfe95942 100644 (file)
@@ -109,8 +109,6 @@ static int __devinit plat_nand_probe(struct platform_device *pdev)
                        return 0;
                }
        }
-       if (pdata->chip.set_parts)
-               pdata->chip.set_parts(data->mtd.size, &pdata->chip);
        if (pdata->chip.partitions) {
                data->parts = pdata->chip.partitions;
                err = mtd_device_register(&data->mtd, data->parts,
index 4a43ffc535c9f766f1d2e73269cd2ddbfa6aa2cb..0f239e7142197aba17f0e2f0ef80c7cad73fc744 100644 (file)
@@ -619,8 +619,6 @@ struct platform_nand_chip {
        unsigned int options;
        unsigned int bbt_options;
        const char **part_probe_types;
-       void (*set_parts)(uint64_t size, struct platform_nand_chip *chip);
-       void *priv;
 };
 
 /* Keep gcc happy */