Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp6715imm; Tue, 19 Jun 2018 14:49:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJcNVtqcvsnoiV08L3Ps0NTw8iyhRq+FuGY2YbhZSMO04fmsanlKnxodotSt7my9aUCUoi+ X-Received: by 2002:a17:902:f83:: with SMTP id 3-v6mr20444695plz.282.1529444955171; Tue, 19 Jun 2018 14:49:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529444955; cv=none; d=google.com; s=arc-20160816; b=LXRFh7TW2J3FYIuvpV/mdHsOXydmMphlpXwKdf9cARNX5bU3CTok++PtILmAGsIvs8 utAwFHy9jlTH9/2g21W7ShfUqWY/yWk9s3CYENcckK4mz/J9IilLMlEcNedQHBS9MWpM S/JQ36kkhTJRT0R9eePMei3ojAseCYXtu4up2miqyDI35OH+V9Vx1a6JbWzTDylRsEId 9tWVMxWsb63DwwaULALlJLVVNvcazYQjdsfwtuPPC/KLnT0AVXjcyHDq4cmAxNrhYnoW JUNW1wFoDF6++X1diG4C32ir7wbAnIn/Y17v6iFnGQUaNjC/AHiPjUJcMiluI+MejMnt JfnA== 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 p4-v6si692059pfg.329.2018.06.19.14.48.57; Tue, 19 Jun 2018 14:49:15 -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 S967354AbeFSVr0 (ORCPT + 99 others); Tue, 19 Jun 2018 17:47:26 -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(-) 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) { } -- 2.17.1