From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755728AbcH3PLm (ORCPT ); Tue, 30 Aug 2016 11:11:42 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:33909 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752325AbcH3PLl (ORCPT ); Tue, 30 Aug 2016 11:11:41 -0400 From: Rob Herring To: Yoshinori Sato Cc: linux-kernel@vger.kernel.org, uclinux-h8-devel@lists.sourceforge.jp Subject: [PATCH] h8300: remove the redundant of_platform_populate Date: Tue, 30 Aug 2016 10:11:38 -0500 Message-Id: <20160830151138.23746-1-robh@kernel.org> X-Mailer: git-send-email 2.9.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The of_platform_populate call in the h8300 arch code is now redundant as the DT core provides a default call. h8300 has a NULL match table which means only top level nodes with compatible strings will have devices creates. The default version will also descend nodes in the match table such as "simple-bus" which should be fine as h8300 doesn't have any of these (though it is preferred that memory-mapped peripherals be grouped under a bus node(s)). Signed-off-by: Rob Herring Cc: Yoshinori Sato Cc: uclinux-h8-devel@lists.sourceforge.jp --- arch/h8300/kernel/setup.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/arch/h8300/kernel/setup.c b/arch/h8300/kernel/setup.c index c8c25a4..75f0df8 100644 --- a/arch/h8300/kernel/setup.c +++ b/arch/h8300/kernel/setup.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #include #include @@ -187,15 +186,6 @@ const struct seq_operations cpuinfo_op = { .show = show_cpuinfo, }; -static int __init device_probe(void) -{ - of_platform_populate(NULL, NULL, NULL, NULL); - - return 0; -} - -device_initcall(device_probe); - #if defined(CONFIG_CPU_H8300H) #define get_wait(base, addr) ({ \ int baddr; \ -- 2.9.3