]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MTD] remove unused mtd parameter in of_mtd_parse_partitions()
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Sun, 12 Oct 2008 14:18:36 +0000 (16:18 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 13 Oct 2008 14:01:42 +0000 (15:01 +0100)
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/maps/physmap_of.c
drivers/mtd/nand/fsl_elbc_nand.c
drivers/mtd/ofpart.c
include/linux/mtd/partitions.h

index 49acd41718934f2a671d887c94e6603b596f32f7..5fcfec034a9466819f83fb5ae00670e1c7fa976a 100644 (file)
@@ -230,8 +230,7 @@ static int __devinit of_flash_probe(struct of_device *dev,
 
 #ifdef CONFIG_MTD_OF_PARTS
        if (err == 0) {
-               err = of_mtd_parse_partitions(&dev->dev, info->mtd,
-                                             dp, &info->parts);
+               err = of_mtd_parse_partitions(&dev->dev, dp, &info->parts);
                if (err < 0)
                        return err;
        }
index 98ad3cefcaf47d5678c81b9a4481ff4c6bec5b4e..4aa5bd6158daf8060c8dcb7f7e06dc9286c64203 100644 (file)
@@ -918,8 +918,7 @@ static int __devinit fsl_elbc_chip_probe(struct fsl_elbc_ctrl *ctrl,
 
 #ifdef CONFIG_MTD_OF_PARTS
        if (ret == 0) {
-               ret = of_mtd_parse_partitions(priv->dev, &priv->mtd,
-                                             node, &parts);
+               ret = of_mtd_parse_partitions(priv->dev, node, &parts);
                if (ret < 0)
                        goto err;
        }
index 4f80c2fd89af71a0a0c9e5bae77c013a663a4c7b..9e45b3f39c0e7e6cf4f4417f874376e5bfdda9df 100644 (file)
@@ -20,7 +20,6 @@
 #include <linux/mtd/partitions.h>
 
 int __devinit of_mtd_parse_partitions(struct device *dev,
-                                      struct mtd_info *mtd,
                                       struct device_node *node,
                                       struct mtd_partition **pparts)
 {
index 5014f7a9f5dfe57a8df546d4cee4edb2e6a065df..c92b4d439609feec0640b953fedc502fd9a8890d 100644 (file)
@@ -73,7 +73,6 @@ struct device;
 struct device_node;
 
 int __devinit of_mtd_parse_partitions(struct device *dev,
-                                      struct mtd_info *mtd,
                                       struct device_node *node,
                                       struct mtd_partition **pparts);