aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2016-06-01 02:53:02 -0400
committerRob Herring <robh@kernel.org>2016-06-23 16:00:31 -0400
commit623e9ef636726280635d7bcc8f6b71794d05a57e (patch)
tree14ce7fc4b9779f1b301c1b8bc4adec23ff1c1eff
parentddd0ce87bfdebbc92c639286a2bf1241f335e6c8 (diff)
nios2: Remove unnecessary of_platform_populate with default match table
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>
-rw-r--r--arch/nios2/platform/platform.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/nios2/platform/platform.c b/arch/nios2/platform/platform.c
index d478773f758a..2a35154ca153 100644
--- a/arch/nios2/platform/platform.c
+++ b/arch/nios2/platform/platform.c
@@ -9,7 +9,6 @@
9 */ 9 */
10 10
11#include <linux/init.h> 11#include <linux/init.h>
12#include <linux/of_platform.h>
13#include <linux/of_address.h> 12#include <linux/of_address.h>
14#include <linux/of_fdt.h> 13#include <linux/of_fdt.h>
15#include <linux/err.h> 14#include <linux/err.h>
@@ -39,8 +38,7 @@ static int __init nios2_soc_device_init(void)
39 } 38 }
40 } 39 }
41 40
42 return of_platform_populate(NULL, of_default_bus_match_table, 41 return 0;
43 NULL, NULL);
44} 42}
45 43
46device_initcall(nios2_soc_device_init); 44device_initcall(nios2_soc_device_init);