Commit 69fd3a8d authored by Sebastian Andrzej Siewior's avatar Sebastian Andrzej Siewior Committed by David Woodhouse

[MTD] remove unused mtd parameter in of_mtd_parse_partitions()

Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 52551beb
...@@ -230,8 +230,7 @@ static int __devinit of_flash_probe(struct of_device *dev, ...@@ -230,8 +230,7 @@ static int __devinit of_flash_probe(struct of_device *dev,
#ifdef CONFIG_MTD_OF_PARTS #ifdef CONFIG_MTD_OF_PARTS
if (err == 0) { if (err == 0) {
err = of_mtd_parse_partitions(&dev->dev, info->mtd, err = of_mtd_parse_partitions(&dev->dev, dp, &info->parts);
dp, &info->parts);
if (err < 0) if (err < 0)
return err; return err;
} }
......
...@@ -918,8 +918,7 @@ static int __devinit fsl_elbc_chip_probe(struct fsl_elbc_ctrl *ctrl, ...@@ -918,8 +918,7 @@ static int __devinit fsl_elbc_chip_probe(struct fsl_elbc_ctrl *ctrl,
#ifdef CONFIG_MTD_OF_PARTS #ifdef CONFIG_MTD_OF_PARTS
if (ret == 0) { if (ret == 0) {
ret = of_mtd_parse_partitions(priv->dev, &priv->mtd, ret = of_mtd_parse_partitions(priv->dev, node, &parts);
node, &parts);
if (ret < 0) if (ret < 0)
goto err; goto err;
} }
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include <linux/mtd/partitions.h> #include <linux/mtd/partitions.h>
int __devinit of_mtd_parse_partitions(struct device *dev, int __devinit of_mtd_parse_partitions(struct device *dev,
struct mtd_info *mtd,
struct device_node *node, struct device_node *node,
struct mtd_partition **pparts) struct mtd_partition **pparts)
{ {
......
...@@ -73,7 +73,6 @@ struct device; ...@@ -73,7 +73,6 @@ struct device;
struct device_node; struct device_node;
int __devinit of_mtd_parse_partitions(struct device *dev, int __devinit of_mtd_parse_partitions(struct device *dev,
struct mtd_info *mtd,
struct device_node *node, struct device_node *node,
struct mtd_partition **pparts); struct mtd_partition **pparts);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment