From patchwork Mon Nov 14 13:30:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stafford Horne X-Patchwork-Id: 82106 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp1010765qge; Mon, 14 Nov 2016 05:35:17 -0800 (PST) X-Received: by 10.99.244.17 with SMTP id g17mr29150448pgi.80.1479130517260; Mon, 14 Nov 2016 05:35:17 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g8si18619472pav.316.2016.11.14.05.35.17; Mon, 14 Nov 2016 05:35:17 -0800 (PST) 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 S1752479AbcKNNec (ORCPT + 26 others); Mon, 14 Nov 2016 08:34:32 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:36843 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751762AbcKNNdG (ORCPT ); Mon, 14 Nov 2016 08:33:06 -0500 Received: by mail-pg0-f65.google.com with SMTP id x23so9027890pgx.3 for ; Mon, 14 Nov 2016 05:33:06 -0800 (PST) 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 :in-reply-to:references; bh=oMyAqyz0sisuFEQpTl7Ix44WVadDvsbIbFrbKZNB3xI=; b=KpyaPzuixXXZ27gUc5bRh51dD2qGJMUIiEJQZ6MRK2G5JdAorGlSfhai67sbRX4X+y dfEI6t7oI8B5tXQhkvLu+sgdbGx+uoo/EcH/mR7y5PBc7VOxh+nMnqFChomVolXVm9Jz olqBMX91dJ0kBnK9JgyhwXHmfpezOQ4NpyBLhiBXOAM1V5GoN7eCpv62K5qO/92QWwNn jbMa4eSiO3XZbM7eO2uX8Wi9MDR5dFK/e9UxCUYn9z5nDosz74k2XIqv4AvzOu90UiLu 2HEtD3nF9lLm2XwHQIeCk8euwrl+GRnWCQ5eI65ieIhhCChJpVWluwtIgatKE7S8HoWB okWw== 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:in-reply-to:references; bh=oMyAqyz0sisuFEQpTl7Ix44WVadDvsbIbFrbKZNB3xI=; b=NrG5wEbEmBhb6HSr7Z2kIYih5v5Ycrd9xQ83/OPd8mRjZQxs7hK8XoBh1B+hcVq6Pm 6TkP5vjCBYeKUKBIbouiyOgxAMXSUCoPitedRLUlssqsy6nYcLqOSMs//wPxm9+iK35A vm+ZrXvsg0Dh0KTSBDhex5JYwUBcovZsoQ2ELqJL8M6jRtt4eByfiOfVOi/4K7w5TIB/ 6If9jTy7dF2i7snPnNsjFM21mNdNcv27odsrf4O1coBc9Wp00K0d6YWIisC2CmwAPKCj 6GtlVLTKYyDA7PrZ1Eh9zUesTah46R2u7uSfny/k1py7k9+whTIE1RuuYVBIRHhYmgzv 4VwA== X-Gm-Message-State: ABUngvfIFtT6gcT94LjM945sTDXprq4IycFHVsWTLJ2Z7OJOYNMiXSOdimR0WXbqoDwSnw== X-Received: by 10.98.35.211 with SMTP id q80mr36346833pfj.26.1479130386084; Mon, 14 Nov 2016 05:33:06 -0800 (PST) Received: from lianli.shorne-pla.net (z14.124-44-185.ppp.wakwak.ne.jp. [124.44.185.14]) by smtp.gmail.com with ESMTPSA id t5sm35451779pfb.58.2016.11.14.05.33.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Nov 2016 05:33:04 -0800 (PST) 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 uAEDWxNp030895 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 14 Nov 2016 22:33:00 +0900 Received: (from shorne@localhost) by lianli.shorne-pla.net (8.15.2/8.15.2/Submit) id uAEDW18C030775; Mon, 14 Nov 2016 22:32:01 +0900 From: Stafford Horne To: stefan.kristiansson@saunalahti.fi, shorne@gmail.com, jonas@southpole.se Cc: linux@roeck-us.net, blue@cmd.nu, robh@kernel.org, linux-kernel@vger.kernel.org, openrisc@lists.librecores.org Subject: [PATCH v2 6/9] openrisc: remove the redundant of_platform_populate Date: Mon, 14 Nov 2016 22:30:36 +0900 Message-Id: <8229b02de46da492810331e374cf2a3f8731e2bb.1479128947.git.shorne@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1479130239-30707-1-git-send-email-shorne@gmail.com> References: <1479130239-30707-1-git-send-email-shorne@gmail.com> In-Reply-To: References: 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 Tested-by: Guenter Roeck 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) {