From patchwork Tue Aug 30 15:11:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 74994 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp2199204qga; Tue, 30 Aug 2016 08:11:46 -0700 (PDT) X-Received: by 10.98.71.140 with SMTP id p12mr6996811pfi.93.1472569906405; Tue, 30 Aug 2016 08:11:46 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k62si45611090pfb.69.2016.08.30.08.11.45; Tue, 30 Aug 2016 08:11:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755734AbcH3PLm (ORCPT + 27 others); 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 Received: by mail-oi0-f67.google.com with SMTP id t127so2100349oie.1 for ; Tue, 30 Aug 2016 08:11:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=+9fWoqElftyXqVI1laZ/97YMblvMJUrTmJSwclBioVQ=; b=A6CbhgOOhGALi019CLWG8ibabYu8F7/M5WXysEPE51OAEgppoRVHaa59+LtWKnxF24 v/A371A3adJzT7k20G76g1LhtPa/TtKiiwfBc6DYE0c3/y2YLC22sNdiEYE07CHdcJv9 CqsT9IRXHranf2CJWfP9lhKuR0E6MhSvmpS1Qjqfse6lf73B9qmkxKth5fTbBKVcY7X+ Y+aRdXvKBywO2X+FIyTt5ZjRp6SBF0mvofmHHGDDMheOQdCwdPucOXZFvHDhMZpEaHtc u0ZsMZ7HHdvQRG43BDxtOU2/jy2kaITmhHq/h844xQghH6y54A7o0RK9UKuRoYorr0TH PC2g== X-Gm-Message-State: AE9vXwO25L62Bkkis03t2gYqAkw01PEp2Cnan2b9G5dyEcCqZd8ERwYDN0m2+ympsjVm5w== X-Received: by 10.202.71.85 with SMTP id u82mr4587960oia.44.1472569900155; Tue, 30 Aug 2016 08:11:40 -0700 (PDT) Received: from rob-hp-laptop.herring.priv (72-48-98-129.dyn.grandenetworks.net. [72.48.98.129]) by smtp.googlemail.com with ESMTPSA id v130sm16723781oia.10.2016.08.30.08.11.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Aug 2016 08:11:39 -0700 (PDT) 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 Precedence: bulk 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(-) -- 2.9.3 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; \