]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
nios2: Remove unnecessary of_platform_populate with default match table
authorKefeng Wang <wangkefeng.wang@huawei.com>
Wed, 1 Jun 2016 06:53:02 +0000 (14:53 +0800)
committerRob Herring <robh@kernel.org>
Thu, 23 Jun 2016 20:00:31 +0000 (15:00 -0500)
After patch "of/platform: Add common method to populate default bus",
it is possible for arch code to remove unnecessary callers of
of_platform_populate with default match table.

Cc: Ley Foon Tan <lftan@altera.com>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Rob Herring <robh@kernel.org>
arch/nios2/platform/platform.c

index d478773f758ac06c88388690541d15973b56b063..2a35154ca1531f6c5e85aeb5c3aaefade71796a6 100644 (file)
@@ -9,7 +9,6 @@
  */
 
 #include <linux/init.h>
-#include <linux/of_platform.h>
 #include <linux/of_address.h>
 #include <linux/of_fdt.h>
 #include <linux/err.h>
@@ -39,8 +38,7 @@ static int __init nios2_soc_device_init(void)
                }
        }
 
-       return of_platform_populate(NULL, of_default_bus_match_table,
-               NULL, NULL);
+       return 0;
 }
 
 device_initcall(nios2_soc_device_init);