]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
memory: omap-gpmc: use of_platform_default_populate() to populate default bus
authorKefeng Wang <wangkefeng.wang@huawei.com>
Wed, 1 Jun 2016 06:53:09 +0000 (14:53 +0800)
committerRob Herring <robh@kernel.org>
Thu, 23 Jun 2016 20:00:55 +0000 (15:00 -0500)
Use helper of_platform_default_populate() in linux/of_platform
when possible, instead of calling of_platform_populate() with
the default match table.

Acked-by: Roger Quadros <rogerq@ti.com>
Cc: Roger Quadros <rogerq@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/memory/omap-gpmc.c

index af4884ba6b7cafa6fe5b2eeda1bee00e59fdd2a3..4b1913a878ec754ec8d3bd3d8d5b890efe7eb5f8 100644 (file)
@@ -2134,8 +2134,7 @@ static int gpmc_probe_generic_child(struct platform_device *pdev,
        /* is child a common bus? */
        if (of_match_node(of_default_bus_match_table, child))
                /* create children and other common bus children */
-               if (of_platform_populate(child, of_default_bus_match_table,
-                                        NULL, &pdev->dev))
+               if (of_platform_default_populate(child, NULL, &pdev->dev))
                        goto err_child_fail;
 
        return 0;