Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753367AbeAEXVb (ORCPT + 1 other); Fri, 5 Jan 2018 18:21:31 -0500 Received: from mail-ot0-f196.google.com ([74.125.82.196]:42720 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753132AbeAEXVF (ORCPT ); Fri, 5 Jan 2018 18:21:05 -0500 X-Google-Smtp-Source: ACJfBotSQM1Qh3p/RCGFO9hALbgK7oTwcZyT8gEc7AcU302nkiRHeMh/60ncTpLh0K5Eb5NB7gmtMw== From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Frank Rowand , Chris Zankel , Max Filippov , linux-xtensa@linux-xtensa.org Subject: [PATCH 7/7] xtensa: remove arch specific early DT functions Date: Fri, 5 Jan 2018 17:20:54 -0600 Message-Id: <20180105232054.27394-8-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 xtensa specific early_init_dt_alloc_memory_arch function. The common early_init_dt_add_memory_arch can be used too now that xtensa switched to memblock. Cc: Chris Zankel Cc: Max Filippov Cc: linux-xtensa@linux-xtensa.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/xtensa/kernel/setup.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/arch/xtensa/kernel/setup.c b/arch/xtensa/kernel/setup.c index 08175df7a69e..82bd1a94157c 100644 --- a/arch/xtensa/kernel/setup.c +++ b/arch/xtensa/kernel/setup.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include @@ -218,17 +217,6 @@ static int __init xtensa_dt_io_area(unsigned long node, const char *uname, } #endif -void __init early_init_dt_add_memory_arch(u64 base, u64 size) -{ - size &= PAGE_MASK; - memblock_add(base, size); -} - -void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) -{ - return __alloc_bootmem(size, align, 0); -} - void __init early_init_devtree(void *params) { early_init_dt_scan(params); -- 2.14.1