From patchwork Fri Jan 5 23:20:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 123570 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1402858qgn; Fri, 5 Jan 2018 15:22:05 -0800 (PST) X-Google-Smtp-Source: ACJfBotuLaYYn0fWWPNzoFzs/EXzOa1OH2foXxZzdeYO19WO7LULpC17IFl1kIrUVskXOqOnsJTc X-Received: by 10.101.82.131 with SMTP id y3mr3760284pgp.306.1515194525246; Fri, 05 Jan 2018 15:22:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515194525; cv=none; d=google.com; s=arc-20160816; b=IGMBLig/ofuJZwgcszISGTS6dH5z9qeuHqvT3zpHDS74aHKhcLOA6Yj9U+6QJ0O0b0 g7+Omd/j7NNS0SC3FP69tjcjHdmxkzuXw75xk3glWon/UTf1u8sylQPs3bfvyE1Y5Evh b3Or2sQPshvEim1nAb6F0fANCsXqlALMhtaHTKRr/RHA05E508PtY62qUdpmQF8TprFT KgF/xfQM1rphx25BMJpReVfHu47PX7xMv6iOyQdMRIUuJsUocTf0Wks4uCfugCIc9R/d YDnjJbUGBPuYVUvTy5KCUz9z00CwaHju9G/sgvH4KLiGeLIZMES7ofdp+TqIhP1kypOk 4OmA== 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=roLjbopVOXpCrr+JJR3iad3O57+7dQ6wC0kmrY1Xs6gQsJq4w18eyVCmxbZUfYe3w0 M9VSxDehdLZVlUkPmPNaqcSnMuT3uVoHxiazWN3pALp7bPmIHKFqKqCduVr7/k92eH7J 9nIDCGfww9lIKo2Nz88JpVbLIXDhlcWrLOpS2j/X1FYTv27lPB4mJkHFMzeUayR/AiP+ SZ5azR+rd4JKFyE8nGkJgaw3DR8A+cCRorEWRIha1uPv53odRUz15q325PrznVjSp8fG iWVdWcnhX+5+txHW3EAm/Qz33dBu0Ubr+8IvpmIh9yYYwsrtzwE6TZdVSnnvCV/yrvVy X0Xg== 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 t197si4128825pgc.511.2018.01.05.15.22.05; Fri, 05 Jan 2018 15:22:05 -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 S1753427AbeAEXWD (ORCPT + 28 others); Fri, 5 Jan 2018 18:22:03 -0500 Received: from mail-ot0-f194.google.com ([74.125.82.194]:34599 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752665AbeAEXVC (ORCPT ); Fri, 5 Jan 2018 18:21:02 -0500 Received: by mail-ot0-f194.google.com with SMTP id p16so2534372otf.1; Fri, 05 Jan 2018 15:21:01 -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=oruYpG0D0rblym8hhPCp/pKbR7lGRY89kqSm/uOaLd8wgtOm2mYVnMosuCUNcYR49D GkKaPj+kzh8Su+mCj61eJaVZKmLNgMlIQls3pjOyC9LPwGCt+LtnWq9PdxyIac46R/Sr 4O/qTDG3iIb6RDPBKibIbwvXoePJX2FOzf1mveTI90Z8mnfRpL7sJLUaz/gr50STB+Lc EADok8q6AcfmU92YyaCZtW/PC6IKoZCmmL/0+VDCLOr57F3L+LYT0q5ODevvFuSTf82Y Sb8B/kh8g5Qykj13KJl1kr5IQ0XnnZNwcxyJkkAI4T0mJ28VU/qkaMlVa/xUVVBikb1O ycAQ== X-Gm-Message-State: AKwxytf0QAYBbraLY+yTywH7JXDnR8Kzo6H+mSLLU7sSmDSNZ3rPceGE vOC8boKFibMHuNVbYU5zFLUxW/c= X-Received: by 10.157.39.199 with SMTP id c65mr2933369otb.197.1515194460930; Fri, 05 Jan 2018 15:21:00 -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 u1sm1969998otc.3.2018.01.05.15.21.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Jan 2018 15:21:00 -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:20:50 -0600 Message-Id: <20180105232054.27394-4-robh@kernel.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180105232054.27394-1-robh@kernel.org> References: <20180105232054.27394-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;