Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

of: unittest: use of_platform_default_populate() to populate default bus

Use helper of_platform_default_populate() in linux/of_platform
when possible, instead of calling of_platform_populate() with
the default match table.

Cc: Rob Herring <robh+dt@kernel.org>
Cc: Frank Rowand <frowand.list@gmail.com>
Cc: Grant Likely <grant.likely@linaro.org>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Kefeng Wang and committed by
Rob Herring
146dedbc 9f2c519c

+2 -3
+2 -3
drivers/of/unittest.c
··· 771 771 }; 772 772 773 773 np = of_find_node_by_path("/testcase-data"); 774 - of_platform_populate(np, of_default_bus_match_table, NULL, NULL); 774 + of_platform_default_populate(np, NULL, NULL); 775 775 776 776 /* Test that a missing irq domain returns -EPROBE_DEFER */ 777 777 np = of_find_node_by_path("/testcase-data/testcase-device1"); ··· 1871 1871 goto out; 1872 1872 } 1873 1873 1874 - ret = of_platform_populate(bus_np, of_default_bus_match_table, 1875 - NULL, NULL); 1874 + ret = of_platform_default_populate(bus_np, NULL, NULL); 1876 1875 if (ret != 0) { 1877 1876 unittest(0, "could not populate bus @ \"%s\"\n", bus_path); 1878 1877 goto out;