From: Dmitry Eremin-Solenikov Date: Mon, 6 Jun 2011 14:04:16 +0000 (+0400) Subject: mtd: plat-nand: drop unused fields from platform_nand_data X-Git-Tag: next-20110726~35^2~112 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c36a6ef3845262ade529afb9f458738b1f196f83;p=karo-tx-linux.git 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 Signed-off-by: Artem Bityutskiy --- diff --git a/drivers/mtd/nand/plat_nand.c b/drivers/mtd/nand/plat_nand.c index 633c04bf76f6..1339fa86a51c 100644 --- a/drivers/mtd/nand/plat_nand.c +++ b/drivers/mtd/nand/plat_nand.c @@ -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, diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 585d49b59a1d..da6e2523e760 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -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 */