Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753427AbeAEXWD (ORCPT + 1 other); 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 X-Google-Smtp-Source: ACJfBov8BiVIKKZxHZMfTDLqXDFpf7GQMHM7GZZhAuvLuDQYUEMIKRbRrf6xNG03kh9/LFLWSKYvJw== 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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: 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(-) 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; -- 2.14.1