From patchwork Tue Jun 19 21:47:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 139269 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp13221lji; Tue, 19 Jun 2018 14:47:31 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIJLvrbF+CbQKeQ2u5Wc5kEQbE9yNtAMJIlevarcBF28HlenOwghitDYPPYsO3qzPz3+VZy X-Received: by 2002:a17:902:563:: with SMTP id 90-v6mr20587422plf.327.1529444851795; Tue, 19 Jun 2018 14:47:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529444851; cv=none; d=google.com; s=arc-20160816; b=GDOEjFES30dsH8s9SA6KYCPJIRKWN1KuhYjHw6Fod+GinXxzBIUWVo9Jd4MORNLHFT gCGcWLx2jv+AGnl45OHzZgnqKtoC9cQJKJBO2kvYw5wh+fwXZb761EGglNKsOD3dAOyM OcR+dxgvdPSM/w1Q6IEB98NpkAe0HFEe8p7tAKM0ue1SGWOc0VdY+YQ9fPfRJnVmguaB bFrqK/t/1VfsCgJRNY08Z6+8QbX1l8ePz6shQ5tZBmCvFwv4iRa3eLbZ9ZF9XyxdvMt8 TdZ5cv3b3mWcdgIfytzt5pyl+rhS4vOa+0SI0SIOUF4Wf3vORl2B3IBm7rBSCEiLQfzX 7XSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=8RXql62/dQvZpkpAbxhcxM+PugjdkCOIwRwB4Nmmg1k=; b=jamfWeRCmsbi5N68Luwpfus4IHQo06nFHgAhrYuWTuNCWFzeQbGe9vhrFklR4WkHzj pXpxA/slQrypTeYNtmw0wnjMbznadF5D3pXRlGMxkKeveQBrlBIqnaskMrRLRF23MjpL evZXdGpE15sPbCMnzQ5NGmZKJtNNgjwjLy7oQfd/HjQ4D4Sn4PwUnfHkC7KPQOfHuKUv CpZQaFJUVOkOYBARrD1TOncNjEM1f3jTO2VPbo48pfVfggWVlo13WoUOKGZB2vDBp3ch 66jVy1vWL8Qvdz4vugHboiiyIu2SUmsAFPnUT3+Fd9rpnu3zAYrroVXFrf+iJgV7xIkK XxeQ== ARC-Authentication-Results: i=1; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u13-v6si614814pfh.282.2018.06.19.14.47.30; Tue, 19 Jun 2018 14:47:31 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967361AbeFSVr1 (ORCPT + 30 others); Tue, 19 Jun 2018 17:47:27 -0400 Received: from mail-yw0-f195.google.com ([209.85.161.195]:43771 "EHLO mail-yw0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967294AbeFSVrT (ORCPT ); Tue, 19 Jun 2018 17:47:19 -0400 Received: by mail-yw0-f195.google.com with SMTP id r19-v6so441973ywc.10 for ; Tue, 19 Jun 2018 14:47:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=8RXql62/dQvZpkpAbxhcxM+PugjdkCOIwRwB4Nmmg1k=; b=NC3yEbjMJB2p4qlK/Cq2PvVJJ5uv2xpriy+LxF7Em2Mh6KTiz7xbOru/V7WpP3BmeN HG2Cl75b4MnbTgqlriVWSzICcA41fhhmx4QoHtGz6EZAepbe7cfw0AlwXjfJ9GjJzMFl uobs+b1+TmiWgZ8H4ZZOS2yjSuZnR0g6iUKN58ltO8KzwIsKWuud0jBy665AjWOOf+Kr mb9/Ewy2ZsbybveVK+eOsHuPTrKdRTD7gbz3JrzSvC8ama/nbIqyclePLUTh+uP/V9rU fxJ5SNM0dPJ3ybcN45YkOUvHBN0TJF6hyoK7wydwgTw1ovoid2gnzONtnD4rIGzOjUnH LuRg== X-Gm-Message-State: APt69E0r2JW6xzFBv74SuOfsRE0vN1PlTbGUGGHMnVKU65U5INhiVj+U +oi4Ked4l1cx5YC9l8q/xw== X-Received: by 2002:a81:ad44:: with SMTP id l4-v6mr9285131ywk.68.1529444838893; Tue, 19 Jun 2018 14:47:18 -0700 (PDT) Received: from localhost.localdomain (24-223-123-72.static.usa-companies.net. [24.223.123.72]) by smtp.googlemail.com with ESMTPSA id x66-v6sm333612ywc.76.2018.06.19.14.47.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jun 2018 14:47:18 -0700 (PDT) From: Rob Herring To: Ralf Baechle , Paul Burton , James Hogan Cc: linux-kernel@vger.kernel.org, linux-mips@linux-mips.org Subject: [PATCH 4/5] MIPS: generic: remove unnecessary of_platform_populate call Date: Tue, 19 Jun 2018 15:47:09 -0600 Message-Id: <20180619214710.22066-5-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180619214710.22066-1-robh@kernel.org> References: <20180619214710.22066-1-robh@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The DT core will call of_platform_populate, so it is not necessary for arch specific code to call it unless there are custom match entries, auxdata or parent device. Neither of those apply here, so remove the call. Cc: Paul Burton Cc: Ralf Baechle Cc: James Hogan Cc: linux-mips@linux-mips.org Signed-off-by: Rob Herring --- arch/mips/generic/init.c | 13 ------------- 1 file changed, 13 deletions(-) -- 2.17.1 diff --git a/arch/mips/generic/init.c b/arch/mips/generic/init.c index 5ba6fcc26fa7..07ec08462d70 100644 --- a/arch/mips/generic/init.c +++ b/arch/mips/generic/init.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include @@ -208,18 +207,6 @@ void __init arch_init_irq(void) irqchip_init(); } -static int __init publish_devices(void) -{ - if (!of_have_populated_dt()) - panic("Device-tree not present"); - - if (of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL)) - panic("Failed to populate DT"); - - return 0; -} -arch_initcall(publish_devices); - void __init prom_free_prom_memory(void) { }