]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mips: use of_platform_default_populate() to populate default bus
authorKefeng Wang <wangkefeng.wang@huawei.com>
Wed, 1 Jun 2016 06:53:06 +0000 (14:53 +0800)
committerRob Herring <robh@kernel.org>
Thu, 23 Jun 2016 20:00:42 +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.

Cc: Joshua Henderson <joshua.henderson@microchip.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Rob Herring <robh@kernel.org>
arch/mips/pic32/pic32mzda/init.c

index 775ff90a99621904afdd2a5ac2bcc63d6959917e..77ecf32ef3dc7cc53a68460087f3539138eeed6c 100644 (file)
@@ -147,8 +147,7 @@ static int __init plat_of_setup(void)
                panic("Device tree not present");
 
        pic32_of_prepare_platform_data(pic32_auxdata_lookup);
-       if (of_platform_populate(NULL, of_default_bus_match_table,
-                                pic32_auxdata_lookup, NULL))
+       if (of_platform_default_populate(NULL, pic32_auxdata_lookup, NULL))
                panic("Failed to populate DT");
 
        return 0;