From patchwork Fri Sep 16 14:43:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stafford Horne X-Patchwork-Id: 76391 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp536190qgf; Fri, 16 Sep 2016 07:48:11 -0700 (PDT) X-Received: by 10.66.254.102 with SMTP id ah6mr23695453pad.59.1474037291072; Fri, 16 Sep 2016 07:48:11 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a4si10645723pav.72.2016.09.16.07.48.10; Fri, 16 Sep 2016 07:48:11 -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; dkim=pass header.i=@gmail.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; dmarc=pass (p=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935537AbcIPOr6 (ORCPT + 27 others); Fri, 16 Sep 2016 10:47:58 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35789 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935329AbcIPOrF (ORCPT ); Fri, 16 Sep 2016 10:47:05 -0400 Received: by mail-pf0-f193.google.com with SMTP id 6so772079pfl.2 for ; Fri, 16 Sep 2016 07:47:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=inJT429lb6pfzDUelwQ7O3DHV+0MQzCiu0Ok3/A95Gg=; b=eBFUrUBqYP+8lURXg2kJ+JsMTqXVA+uLSxMqoGsqOKNuVQE3W6bU0J/JREdhmnmAzS iXJss3jSzVrHVCFJcRcYYjKRDQYf2ySfjVVUnP0MzoniALSzRAR6J2bPatV0+Ln9OsHu TqJN4TfgeQKIOgIcsCe+7zSgYD/V+y7/ZNCZWhbX0PgqSg24axywpYIbtL+9NMUV12Fu QIGJqJmX0A9NRzz1Zo/Ts9vUUHhW5vaed0fWkxBvlznzecOqnqq4cVXPzDbQ73D34Pi6 rYeekanJQrxcGjRj+kTH7rLVU36ZYJmnIFgpQN1T1uQvtl+Nsbfs1UmcDaw2N4JUcmL4 ydHA== 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:in-reply-to :references; bh=inJT429lb6pfzDUelwQ7O3DHV+0MQzCiu0Ok3/A95Gg=; b=iNSpw+PAV8Y1wKeCWHbHxWDPYhFSqEY1Es7G7kmMV0V98V4V8WAfcD/vg6uWaiGrAe BsfrAluHdtTrZDioRtBcqn3H1a/NsCZcFrGF5Okx50UE/hYBsDnRTnSCe03pGF9bAZJp z2t8Bl0SQifMZ4N2WrZKrMGxhVRC+E/Y2yFfVXtGg5ZD42uQxLwlanyldlFnfp/sPxCi L8HZOC+GwmqJK/B+denfrStILo6nanhOR+V0Odo2wJG3tTOnImWETMUPCaL0ritJXfmN ik3Doaas1Ftcgyqvmrpr2AXwyz+Hov9o+FRB3hVoErF1Q84+GuzFvPtdWFgPZQBh5gyM qLlg== X-Gm-Message-State: AE9vXwMOUI2KzRPD3yf4MZIdMOfJJajIGSoBDsJDXD8sOeazsFR5VIKJWzg1AwIDuqSfwA== X-Received: by 10.98.139.220 with SMTP id e89mr23375376pfl.125.1474037225006; Fri, 16 Sep 2016 07:47:05 -0700 (PDT) Received: from lianli.shorne-pla.net (z235.211-19-65.ppp.wakwak.ne.jp. [211.19.65.235]) by smtp.gmail.com with ESMTPSA id 21sm4678340pfo.80.2016.09.16.07.47.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Sep 2016 07:47:02 -0700 (PDT) Received: from lianli.shorne-pla.net (localhost [127.0.0.1]) by lianli.shorne-pla.net (8.15.2/8.15.2) with ESMTPS id u8GEkvdX021244 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 16 Sep 2016 23:46:58 +0900 Received: (from shorne@localhost) by lianli.shorne-pla.net (8.15.2/8.15.2/Submit) id u8GEhhP3021040; Fri, 16 Sep 2016 23:43:43 +0900 From: Stafford Horne To: Jonas Bonn , Stefan Kristiansson , Andrew Morton Cc: linux-kernel@vger.kernel.org, Rob Herring , Stafford Horne Subject: [PATCH 7/7] openrisc: remove the redundant of_platform_populate Date: Fri, 16 Sep 2016 23:43:05 +0900 Message-Id: <1474036985-20981-8-git-send-email-shorne@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1474036985-20981-1-git-send-email-shorne@gmail.com> References: <1474036985-20981-1-git-send-email-shorne@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rob Herring The of_platform_populate call in the openrisc arch code is now redundant as the DT core provides a default call. Openrisc 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 openrisc 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: Jonas Bonn Signed-off-by: Stafford Horne --- arch/openrisc/kernel/setup.c | 10 ---------- 1 file changed, 10 deletions(-) -- 2.7.4 diff --git a/arch/openrisc/kernel/setup.c b/arch/openrisc/kernel/setup.c index b4ed8b3..d2f78cf 100644 --- a/arch/openrisc/kernel/setup.c +++ b/arch/openrisc/kernel/setup.c @@ -38,7 +38,6 @@ #include #include #include -#include #include #include @@ -219,15 +218,6 @@ void __init or32_early_setup(void *fdt) early_init_devtree(fdt); } -static int __init openrisc_device_probe(void) -{ - of_platform_populate(NULL, NULL, NULL, NULL); - - return 0; -} - -device_initcall(openrisc_device_probe); - static inline unsigned long extract_value_bits(unsigned long reg, short bit_nr, short width) {