From patchwork Fri Jan 5 23:14:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 123562 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1397568qgn; Fri, 5 Jan 2018 15:15:01 -0800 (PST) X-Google-Smtp-Source: ACJfBoufEfalS6/bCSW8G7pq7DGIBSrpAu5QmfPyUCebnDx1uWUWhG9rD9Qd/jR7Vakei7IC94IO X-Received: by 10.101.80.74 with SMTP id k10mr3698551pgo.418.1515194101783; Fri, 05 Jan 2018 15:15:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515194101; cv=none; d=google.com; s=arc-20160816; b=cBG9/Inyz5r9eSaNR1Lb1ne4UxuCjj+msQqchVACFlR5H4HTjhNHK5JOYkPGfjWfac uzR0/t/B5jYeBtXk4RmevAeT8Y4/mFyfCBC+FrlccyF6eIPdL7l6zRcCg9sgoAQYg2Il vk0k8c32S7VBYFQ8rhjdrWD4WpUUg3UXP5s2ZBhYtCXyAFHFY2m4NvdR+R2mcUOU5WZk i40LCZAkKjdV4wrMQ9HabgVKCVCWWxP6vaXBHo+Z06+K5PGLPAnBDBwYSQRJElNNsZl1 sxBfxjMNPgNu4KqSnHsnKt4tZLhd41Xxb9MdWWWokiD0gthBAVpAsDi1lzJ73k2F4zpV ogjQ== 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=YL3YbvmfAddxl/h9/kv4Jb9X0BXDJsT6Xu72L9M5ujE=; b=CJv/0mPLhMYzi5BZvZD82+vAl/dXoRBc1floohB9BcVQFuwzJLaqypDdo9fqUfiR7a oihx0Q34ratXWJ4PkEsk1kbm2nDP7IM4T2eju0/m/LJJ6uPXM13l2y24rsdoIM/ubBu2 1dSd2qokOkZRZ+HKZPweb4I1cI7bki0MsuXMMwkbdglgKrPHfPEjowt3We8ozzSpPq0B ICYm71mkD19fS9VzQlXLU3oimmmq2q7CdGmMkb9rEOjLFOCo+d4RePZnywd/3AWz3kDs byHwynYond74KufJSUFhLlSycKNQomJiT1DYJUmvU5LbI08XwQ441wWRwOFFEO9toni1 yNAg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v27si4700405pfi.311.2018.01.05.15.15.01; Fri, 05 Jan 2018 15:15:01 -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; 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 S1752306AbeAEXOc (ORCPT + 28 others); Fri, 5 Jan 2018 18:14:32 -0500 Received: from mail-ot0-f196.google.com ([74.125.82.196]:36745 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752957AbeAEXO3 (ORCPT ); Fri, 5 Jan 2018 18:14:29 -0500 Received: by mail-ot0-f196.google.com with SMTP id w4so5160824otg.3; Fri, 05 Jan 2018 15:14:29 -0800 (PST) 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=YL3YbvmfAddxl/h9/kv4Jb9X0BXDJsT6Xu72L9M5ujE=; b=gNkZJ9YJjbP42Obsv2xRyJsKizUHySgb6EO5bCQto/Sy4fLmGQzuZmtRk0fgqYtckB Tmb18KG9fOqR8+Q8FGQQ4JoHSHxtkgqttxXyHHa1YEi+Axp5ocQPQSnoXzcnOjnia2Qn VsYXZTXdBWsE03b9X5ngDWiaLs4/fgQfGAI0qybcCInXXzMj0iUSgyit3P3pOHwzhtSD QV9oWk+D/IzLE1hPaTVC0o0D5cGcki2tJwaaSTaHG/pek+w5DU1SGdrYWpXQfEkroiLN 6bR4rsnXCT8u9MRVmKQvMjYLgpRS7qmvFI3jIZgoAfpbSD3xi/F87kNg3i8NJxIegKHO qGLg== X-Gm-Message-State: AKwxytfcofZVaYY6K4yp2f7iZkRH0R++NwbEXq485XfJ1Mq3zh/JhpwN iqKP+Pd0tb/Kl6rIIoZgGmdbk5s= X-Received: by 10.157.44.154 with SMTP id p26mr1656359otb.8.1515194068408; Fri, 05 Jan 2018 15:14:28 -0800 (PST) Received: from xps15.usacommunications.tv (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.googlemail.com with ESMTPSA id p24sm2824627oie.54.2018.01.05.15.14.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Jan 2018 15:14:27 -0800 (PST) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Frank Rowand , James Hogan , linux-metag@vger.kernel.org Subject: [PATCH 3/7] metag: remove arch specific early DT functions Date: Fri, 5 Jan 2018 17:14:20 -0600 Message-Id: <20180105231424.19247-4-robh@kernel.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180105231424.19247-1-robh@kernel.org> References: <20180105231424.19247-1-robh@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that the DT core code handles bootmem arches, we can remove the metag specific early_init_dt_alloc_memory_arch function. As the default early_init_dt_add_memory_arch just does a WARN, we can remove it too. Cc: James Hogan Cc: linux-metag@vger.kernel.org Signed-off-by: Rob Herring --- This is dependent on patch 1. Please ack and I'll take or apply after 4.16-rc1. arch/metag/kernel/devtree.c | 14 -------------- 1 file changed, 14 deletions(-) -- 2.14.1 diff --git a/arch/metag/kernel/devtree.c b/arch/metag/kernel/devtree.c index 18dd7aea9fdc..6af749a64438 100644 --- a/arch/metag/kernel/devtree.c +++ b/arch/metag/kernel/devtree.c @@ -14,26 +14,12 @@ #include #include #include -#include -#include -#include #include #include #include #include -void __init early_init_dt_add_memory_arch(u64 base, u64 size) -{ - pr_err("%s(%llx, %llx)\n", - __func__, base, size); -} - -void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) -{ - return alloc_bootmem_align(size, align); -} - static const void * __init arch_get_next_mach(const char *const **match) { static const struct machine_desc *mdesc = __arch_info_begin;