mtd: nand: drop unnecessary partition parser data
[deliverable/linux.git] / drivers / mtd / nand / mxc_nand.c
index 136e73a3e07e5359aee12877f96cfe81b71caba2..7922d318ebb8e5531f0bd7e73e1319cf20470043 100644 (file)
@@ -1524,6 +1524,7 @@ static int mxcnd_probe(struct platform_device *pdev)
        this->chip_delay = 5;
 
        this->priv = host;
+       nand_set_flash_node(this, pdev->dev.of_node),
        this->dev_ready = mxc_nand_dev_ready;
        this->cmdfunc = mxc_nand_command;
        this->read_byte = mxc_nand_read_byte;
@@ -1683,9 +1684,7 @@ static int mxcnd_probe(struct platform_device *pdev)
 
        /* Register the partitions */
        mtd_device_parse_register(mtd, part_probes,
-                       &(struct mtd_part_parser_data){
-                               .of_node = pdev->dev.of_node,
-                       },
+                       NULL,
                        host->pdata.parts,
                        host->pdata.nr_parts);
 
This page took 0.027793 seconds and 5 git commands to generate.