From patchwork Tue Aug 30 15:10:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 74993 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp2198966qga; Tue, 30 Aug 2016 08:11:19 -0700 (PDT) X-Received: by 10.66.139.110 with SMTP id qx14mr7184507pab.101.1472569878954; Tue, 30 Aug 2016 08:11:18 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y130si45654349pfg.217.2016.08.30.08.11.16; Tue, 30 Aug 2016 08:11:18 -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 S1755628AbcH3PLD (ORCPT + 27 others); Tue, 30 Aug 2016 11:11:03 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:34735 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753135AbcH3PLB (ORCPT ); Tue, 30 Aug 2016 11:11:01 -0400 Received: by mail-oi0-f65.google.com with SMTP id t127so2098731oie.1 for ; Tue, 30 Aug 2016 08:11:01 -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=aU5jS+CZPKrx92IvY5Eu4QgaJ8C/LrqzT3P6OzMtke8=; b=BPczM9GpO/w2MBz+rZf/K7KlO1ygWtOC3+UBEYBimC1JLyEE8Odds+Ug7M2g+iZWTQ OPSs9LAzbAKOnw/JRkqMPPITH7iy4/ac3fIKtw6UmWP7pKLn5sLsWcHH4WCM5twEsqEP wKGYLfl58DPTCvk0lv4k+fxAC3bv1Ut75vdS6xKoF5ru5hUpo2McbCsTsldEI0qCPzr4 hZ4+DEP3Gx0cPp/n8gGfyGqkBXpCzq/MfXfZotLGIbOT+fPMc4FVlegNHKvUF7an93lB yPo4HC7wKrIDefL9NKE9TNjDye01z0ktshTX5ChgwOmQWY62amrI5zr7DgI0zpw/F3nq pHYg== X-Gm-Message-State: AE9vXwODiQ1cFchGws4Iv+vtnX+kdT0UA8qcKBCP8FXBgNHbUbUqiQrdVps2pIU0JLlbRQ== X-Received: by 10.157.41.226 with SMTP id g31mr4445673otd.69.1472569860505; Tue, 30 Aug 2016 08:11:00 -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 j130sm16973692oih.27.2016.08.30.08.10.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Aug 2016 08:11:00 -0700 (PDT) From: Rob Herring To: Jonas Bonn Cc: linux-kernel@vger.kernel.org Subject: [PATCH] openrisc: remove the redundant of_platform_populate Date: Tue, 30 Aug 2016 10:10:59 -0500 Message-Id: <20160830151059.23353-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 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 --- arch/openrisc/kernel/setup.c | 10 ---------- 1 file changed, 10 deletions(-) -- 2.9.3 diff --git a/arch/openrisc/kernel/setup.c b/arch/openrisc/kernel/setup.c index b4ed8b3..d2f78cf7 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) {