]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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 <dedekind1@gmail.com>
Thu, 23 Jun 2011 08:43:41 +0000 (11:43 +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 633c04bf76f6c158aa4029ab83dc6a3d7f3ddca9..1339fa86a51c33ba39e7c9aee28fc240620a9d36 100644 (file)
@@ -108,8 +108,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 585d49b59a1d399b144d9883613df329f7d95845..da6e2523e7608706546522bd38b64b8ddf79e297 100644 (file)
@@ -617,8 +617,6 @@ struct platform_nand_chip {
        int chip_delay;
        unsigned int options;
        const char **part_probe_types;
-       void (*set_parts)(uint64_t size, struct platform_nand_chip *chip);
-       void *priv;
 };
 
 /* Keep gcc happy */