From patchwork Fri Jan 5 23:20:51 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: 123569 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1402680qgn; Fri, 5 Jan 2018 15:21:50 -0800 (PST) X-Google-Smtp-Source: ACJfBot3kv4EXm2Q84h7v2T4epG3EgAvXhQXlQG5MzgYjeWAb6JtGPqoJv6VLJelz6pU540hy7ad X-Received: by 10.84.130.6 with SMTP id 6mr4727915plc.134.1515194510244; Fri, 05 Jan 2018 15:21:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515194510; cv=none; d=google.com; s=arc-20160816; b=YLo42ITxE91aX1IViJUf9kWSJLs2wiVcssfUFylbhTWaiJdyVbhzBHoAYTOhU9TNtB NPJHmt9v/N7MAclJsEmRkpol2Jr+sFb5OLPlcFV9uJXj3tp0PTmmnheEP0aNzVjseAl5 NThFp6tq7BTUKJD0gykmBQvtBubE10OdJ+EXnSj/ESWgW9B6RMzgT2jvN21KHysLa7ts eIJuc/biFJATtxO5XZIKQm4qxFTlAvUVn1YWqOsGbfdVM7klpcQIXon2BBLbKFVE6HS/ TC3Eva3U99seDEdC+ORf6X+EixgcKYG40YY4/apQ4ixWXIl1RDr66NC4PrxEVZS/XxT7 mdGQ== 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=0LBnnqjf+JYcv7Hs2WO4+gZN9BgoZl7bR2TdhCTKnpE=; b=AFeZGkeFRCblKD2wcZI8hXleCcMp0cuUICqMHgElD62CGoSlV1j3SvHMQZ8MHNykb9 8a12KfWSsiVIF7EF3oD8IPUHpCpcYIlWFZ5XjSMX5a0u2LatGzMjo/m7fmmvssEps+5Z 7nUWwFFGNawt/iTyXG3AEEooIntJ+lg+4VHWuK+bgTmIBYxCCW4ZZLbJx0p8tyD94Btr hIwVnjm+VvjYC9EB2PRIB4jq3BLsdeo0dc1CSqpohq0T42lyLiginlvhvCid6ycclAHe wI0doEAXbCeTkfiR3F21Idfu3KtZocVYjIxkUmGxeypED5ogSDiP3PtSrnL5MUEmbmSt VmUw== 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.21.49; Fri, 05 Jan 2018 15:21:50 -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 S1753402AbeAEXVs (ORCPT + 28 others); 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 Received: by mail-ot0-f196.google.com with SMTP id p18so2021083otc.10; Fri, 05 Jan 2018 15:21:02 -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=0LBnnqjf+JYcv7Hs2WO4+gZN9BgoZl7bR2TdhCTKnpE=; b=QdPRus3cLykatxXj0Xnkwoy9gINZk5yC3CtgyPOAdInUsyr5lm9fmPV2gZU8Y0mGxA bEZ54g9VsVCNAZ+qBOuTEmZM3RUwkEHINU6F6hYZ9emfrJWAYMiDhQ4VWBtEIGOXR4jC suhse/QMEZg89nc58unQJ62Galoy6V8AVc5CYwhEVOVYxm+Ab08sLfjU5VMI8xP2SPPd QfBoF034ur95iZTgSu+TwwuHgCb6tlInPkVT9UWavWPeCPcnvPCJN0YUkgObMY9bKKmn JaEuWFHrpKvvhdn/5uDXOxf6OGOJDXz+2Nm30qhB3Z5ESbRswlzxM/HM4liLKGbhQ/VP BGSw== X-Gm-Message-State: AKwxytfm3gU4P5LoH0Srm30M1Naet3XtFzMkEJtVEPhXtWGzO5UI7T07 lYTfs9JtFSPPZxLwrkWPOH97Bz0= X-Received: by 10.157.21.48 with SMTP id u45mr2212472otf.382.1515194461923; Fri, 05 Jan 2018 15:21:01 -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:01 -0800 (PST) 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 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 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(-) -- 2.14.1 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) {