Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753402AbeAEXVs (ORCPT + 1 other); Fri, 5 Jan 2018 18:21:48 -0500 Received: from mail-ot0-f196.google.com ([74.125.82.196]:43251 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752933AbeAEXVC (ORCPT ); Fri, 5 Jan 2018 18:21:02 -0500 X-Google-Smtp-Source: ACJfBoub2oYONhmcISfKvWCa8i6o+RN/ogsIyNMs6zhj3EJOVUywZAWCLdAHI8huvcYcHDT0wOIMNA== From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Frank Rowand , Ralf Baechle , linux-mips@linux-mips.org Subject: [PATCH 4/7] mips: remove arch specific early_init_dt_alloc_memory_arch Date: Fri, 5 Jan 2018 17:20:51 -0600 Message-Id: <20180105232054.27394-5-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 MIPS specific early_init_dt_alloc_memory_arch function. Cc: Ralf Baechle Cc: linux-mips@linux-mips.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/mips/kernel/prom.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/mips/kernel/prom.c b/arch/mips/kernel/prom.c index 0dbcd152a1a9..89950b7bf536 100644 --- a/arch/mips/kernel/prom.c +++ b/arch/mips/kernel/prom.c @@ -44,11 +44,6 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size) return add_memory_region(base, size, BOOT_MEM_RAM); } -void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) -{ - return __alloc_bootmem(size, align, __pa(MAX_DMA_ADDRESS)); -} - int __init early_init_dt_reserve_memory_arch(phys_addr_t base, phys_addr_t size, bool nomap) { -- 2.14.1